Guest User

Untitled

a guest
Jun 25th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. using System;
  2. using UnityEngine;
  3. using UnityEngine.Playables;
  4. using UnityEngine.Timeline;
  5.  
  6. public class NormalModeSamplePlayableMixerBehaviour : PlayableBehaviour
  7. {
  8. // NOTE: This function is called at runtime and edit time. Keep that in mind when setting the values of properties.
  9. public override void ProcessFrame(Playable playable, FrameData info, object playerData)
  10. {
  11. NormalModeSample trackBinding = playerData as NormalModeSample;
  12.  
  13. if (!trackBinding)
  14. return;
  15.  
  16. int inputCount = playable.GetInputCount ();
  17.  
  18. for (int i = 0; i < inputCount; i++)
  19. {
  20. float inputWeight = playable.GetInputWeight(i);
  21. ScriptPlayable<NormalModeSamplePlayableBehaviour> inputPlayable = (ScriptPlayable<NormalModeSamplePlayableBehaviour>)playable.GetInput(i);
  22. NormalModeSamplePlayableBehaviour input = inputPlayable.GetBehaviour ();
  23.  
  24. // Use the above variables to process each frame of this playable.
  25.  
  26. }
  27. }
  28. }
Add Comment
Please, Sign In to add comment