Search Unity

Resolved where do you put playableasset and playablebehaviour?

Discussion in 'Timeline' started by laurentlavigne, Nov 6, 2020.

  1. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Yes. The behaviour class can live anywhere - same file, different file, nested class of the asset etc...

    The restriction is the asset needs to be in it's own file, with the same name as the class. That's because it is a ScriptableObject, and that restriction applies to all ScriptableObject classes.
     
    laurentlavigne likes this.
  3. laurentlavigne

    laurentlavigne

    Joined:
    Aug 16, 2012
    Posts:
    6,363
    thank you!
    it's working now.
    Great API by the way, easy to use, not verbose, makes sense.