CreateAndEdit() public static method

public static CreateAndEdit ( GameObject root, AnimationClip clip, float time ) : AnimationWindowEvent
root UnityEngine.GameObject
clip UnityEngine.AnimationClip
time float
return AnimationWindowEvent
コード例 #1
0
        public void EventLineContextMenuAdd(object obj)
        {
            AnimationEventTimeLine.EventLineContextMenuObject eventLineContextMenuObject = (AnimationEventTimeLine.EventLineContextMenuObject)obj;
            AnimationWindowEvent evt = AnimationWindowEvent.CreateAndEdit(eventLineContextMenuObject.m_Animated, eventLineContextMenuObject.m_Clip, eventLineContextMenuObject.m_Time);

            this.Select(evt);
        }
コード例 #2
0
        public void EventLineContextMenuAdd(object obj)
        {
            EventLineContextMenuObject obj2 = (EventLineContextMenuObject)obj;
            AnimationWindowEvent       evt  = AnimationWindowEvent.CreateAndEdit(obj2.m_Animated, obj2.m_Clip, obj2.m_Time);

            this.Select(evt);
        }
コード例 #3
0
        public void AddEvent(float time, GameObject gameObject, AnimationClip animationClip)
        {
            AnimationWindowEvent awEvent = AnimationWindowEvent.CreateAndEdit(gameObject, animationClip, time);

            Selection.activeObject = awEvent;
        }
コード例 #4
0
        public void AddEvent(float time, GameObject rootGameObject, AnimationClip animationClip)
        {
            AnimationWindowEvent evt = AnimationWindowEvent.CreateAndEdit(rootGameObject, animationClip, time);

            this.Select(evt);
        }