Why can't I set an Animation reference in a Scriptable Object instance?
The idea is I'd like my ScriptableObject to hold a reference to an Animation clip (it's supposed to represent a combo piece).
So I have this example class:
 [CreateAssetMenu(fileName = "ComboPiece", menuName = "Combo/BaseCombo", order = 1)]
 public class ComboPiece : ScriptableObject
 {
     public Animation Animation;
     public ComboPiece Subsequent;
     public ComboPiece SubsequentPause;
     public ComboPiece SubsequentHold;
 }
I can set the references to other ComboPieces, but selecting an Animation clip to fill the Animation field results in it still having None (Animation). Ideas?
Answer by Adam-Mechtley · Feb 17, 2017 at 01:51 PM
The type needs to be AnimationClip, not Animation ;)
Wow, right. It does make sense, but why would it let me pick a clip (even if picking it changes nothing)? It's slightly confusing, thanks :v
Your answer
 
 
             Follow this Question
Related Questions
Changing ScriptableObject to another during runtime crashes UnityEditor 0 Answers
Custom inspector - How to serialize scene objects in ScriptableObject? 0 Answers
type mismatch on texture 2D inside scriptable object 0 Answers
Scripts vs ScriptableObject 1 Answer
ScriptableObject Life Cycle [ Help ] 0 Answers
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                