I’m making a game dev tool where I can define hitboxes for animations, and I need a way to store info for a frame. I was thinking scriptable objects, but I would have to manually keep track of each of the objects whenever anyone makes a new frame or deletes one, and for some animations with 20 frames, I would have to keep 20 scriptable objects in the Project tab. Is there an easier way to do this? Thanks, Max
What about some MonoBehaviour/ScriptableObject that contains a List of Serializable Structs?
public class AnimationData {
public List<FrameData> frameData;
[System.Serializable]
public struct FrameData {
//put your frame-related data here.
}
}