상속: UnityEditor.Graphs.AnimationStateMachine.Node
예제 #1
0
파일: Graph.cs 프로젝트: wensincai/Unity5.4
        private void ReadStatePosition(StateNode stateNode)
        {
            Vector2 vector = this.activeStateMachine.GetStatePosition(stateNode.state);

            stateNode.position.x = vector.x;
            stateNode.position.y = vector.y;
        }
예제 #2
0
파일: Graph.cs 프로젝트: wensincai/Unity5.4
        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);
        }
예제 #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);
        }