public static ScriptPlayable <TimeControlPlayable> Create(PlayableGraph graph, ITimeControl timeControl) { ScriptPlayable <TimeControlPlayable> result; if (timeControl == null) { result = ScriptPlayable <TimeControlPlayable> .get_Null(); } else { ScriptPlayable <TimeControlPlayable> scriptPlayable = ScriptPlayable <TimeControlPlayable> .Create(graph, 0); scriptPlayable.GetBehaviour().Initialize(timeControl); result = scriptPlayable; } return(result); }
public static ScriptPlayable <ParticleControlPlayable> Create(PlayableGraph graph, ParticleSystem component, uint randomSeed) { ScriptPlayable <ParticleControlPlayable> result; if (component == null) { result = ScriptPlayable <ParticleControlPlayable> .get_Null(); } else { ScriptPlayable <ParticleControlPlayable> scriptPlayable = ScriptPlayable <ParticleControlPlayable> .Create(graph, 0); scriptPlayable.GetBehaviour().Initialize(component, randomSeed); result = scriptPlayable; } return(result); }
public static ScriptPlayable <PrefabControlPlayable> Create(PlayableGraph graph, GameObject prefabGameObject, Transform parentTransform) { ScriptPlayable <PrefabControlPlayable> result; if (prefabGameObject == null) { result = ScriptPlayable <PrefabControlPlayable> .get_Null(); } else { ScriptPlayable <PrefabControlPlayable> scriptPlayable = ScriptPlayable <PrefabControlPlayable> .Create(graph, 0); scriptPlayable.GetBehaviour().Initialize(prefabGameObject, parentTransform); result = scriptPlayable; } return(result); }
public static ScriptPlayable <DirectorControlPlayable> Create(PlayableGraph graph, PlayableDirector director) { ScriptPlayable <DirectorControlPlayable> result; if (director == null) { result = ScriptPlayable <DirectorControlPlayable> .get_Null(); } else { ScriptPlayable <DirectorControlPlayable> scriptPlayable = ScriptPlayable <DirectorControlPlayable> .Create(graph, 0); scriptPlayable.GetBehaviour().director = director; result = scriptPlayable; } return(result); }
public static ScriptPlayable <ActivationControlPlayable> Create(PlayableGraph graph, GameObject gameObject, ActivationControlPlayable.PostPlaybackState postPlaybackState) { ScriptPlayable <ActivationControlPlayable> result; if (gameObject == null) { result = ScriptPlayable <ActivationControlPlayable> .get_Null(); } else { ScriptPlayable <ActivationControlPlayable> scriptPlayable = ScriptPlayable <ActivationControlPlayable> .Create(graph, 0); ActivationControlPlayable behaviour = scriptPlayable.GetBehaviour(); behaviour.gameObject = gameObject; behaviour.postPlayback = postPlaybackState; result = scriptPlayable; } return(result); }