SpriteDataEditor.

IndexOf(Sprite) Method

Summary

Tries to find the index of the data matching the `sprite`.
Assembly
Animancer.dll
Namespace
Animancer.Editor.Tools
Containing Type
SpriteDataEditor

Syntax

public int IndexOf(Sprite sprite)

Remarks

Returns -1 if there is no data matching the UnityEngine.Object.name.

Returns -2 if there is more than one data matching the UnityEngine.Object.name but no UnityEngine.Sprite.rect match.

Parameters

Name Type Description
sprite Sprite

Return Value

Type Description
int