protected override object ApplyPlayableValue(object currentValue, Playable playable, float playableWeight)
            {
                ScriptPlayable <MaterialColorParamPlayableBehaviour> scriptPlayable = (ScriptPlayable <MaterialColorParamPlayableBehaviour>)playable;
                MaterialColorParamPlayableBehaviour inputBehaviour = scriptPlayable.GetBehaviour();

                return(Color.Lerp((Color)currentValue, inputBehaviour._value, playableWeight));
            }
Example #2
0
            public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
            {
                ScriptPlayable <MaterialColorParamPlayableBehaviour> playable = ScriptPlayable <MaterialColorParamPlayableBehaviour> .Create(graph, _data);

                MaterialColorParamPlayableBehaviour clone = playable.GetBehaviour();

                clone._clip = this;
                return(playable);
            }