Exemple #1
0
        public void AddBlendTree(string stateName, Playable playable, BlendTreeConfig[] configs, string blendTreeParam, string groupName = null, int layer = 0)
        {
            StateLayer stateLayer = GetStateLayer(layer);

            if (stateLayer != null)
            {
                stateLayer.AddState(stateName, true, playable, null, groupName, configs, blendTreeParam);
            }
        }
Exemple #2
0
        public void AddState(string stateName, Playable playable, AnimationClip clip, string groupName = null, int layer = 0)
        {
            StateLayer stateLayer = GetStateLayer(layer);

            if (stateLayer != null)
            {
                stateLayer.AddState(stateName, false, playable, clip, groupName);
            }
        }
        public StateInfo AddState(string stateName, Playable playable, AnimationClip clip, string groupName = null, int layer = 0)
        {
            StateLayer stateLayer = GetStateLayer(layer);

            if (stateLayer != null)
            {
                return(stateLayer.AddState(stateName, false, playable, clip, groupName));
            }
            return(null);
        }