Inheritance: UnityEditor.Graphs.AnimationStateMachine.Node
Exemplo n.º 1
0
        private void ReadStatePosition(StateNode stateNode)
        {
            Vector2 vector = this.activeStateMachine.GetStatePosition(stateNode.state);

            stateNode.position.x = vector.x;
            stateNode.position.y = vector.y;
        }
Exemplo n.º 2
0
        private void CreateNodeFromState(ChildAnimatorState state)
        {
            StateNode stateNode = this.CreateAndAddNode <StateNode>(string.Empty, state.position);

            stateNode.state = state.state;
            if (this.rootStateMachine.defaultState == state.state)
            {
                stateNode.color = Styles.Color.Orange;
            }
            this.m_StateNodeLookup.Add(state.state, stateNode);
        }
Exemplo n.º 3
0
        private void CreateNodeFromState(ChildAnimatorState state)
        {
            StateNode node = this.CreateAndAddNode <StateNode>("", state.position);

            node.state = state.state;
            if (this.rootStateMachine.defaultState == state.state)
            {
                node.color = UnityEditor.Graphs.Styles.Color.Orange;
            }
            this.m_StateNodeLookup.Add(state.state, node);
        }