public static AnimationEventObject Create(int frame, AnimationClipEvents parent) { AnimationEventObject obj = CreateInstance <AnimationEventObject>(); obj._frame = frame; obj._parent = parent; return(obj); }
public AnimationEventObject AddAt(int frame) { var obj = AnimationEventObject.Create(frame, this); AnimationEventObjectMap.Add(frame, obj); AssetDatabase.AddObjectToAsset(obj, this); AssetDatabase.ImportAsset(AssetDatabase.GetAssetPath(this)); return(obj); }
public bool TryGetValue(int frame, out AnimationEventObject value) { return(AnimationEventObjectMap.TryGetValue(frame, out value)); }