ILayerable.cs 982 B

1234567891011121314151617181920
  1. using UnityEngine;
  2. using UnityEngine.Playables;
  3. namespace UnityEngine.Timeline
  4. {
  5. /// <summary>
  6. /// Implement this interface on a TrackAsset derived class to support layers
  7. /// </summary>
  8. public interface ILayerable
  9. {
  10. /// <summary>
  11. /// Creates a mixer that blends track mixers.
  12. /// </summary>
  13. /// <param name="graph">The graph where the mixer playable will be added.</param>
  14. /// <param name="go">The GameObject that requested the graph.</param>
  15. /// <param name="inputCount">The number of inputs on the mixer. There should be an input for each playable from each clip.</param>
  16. /// <returns>Returns a playable that is used as a mixer. If this method returns Playable.Null, it indicates that a layer mixer is not needed. In this case, a single track mixer blends all playables generated from all layers.</returns>
  17. Playable CreateLayerMixer(PlayableGraph graph, GameObject go, int inputCount);
  18. }
  19. }