{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class ClipAction | Timeline | 1.6.3
docs.unity3d.com
"{0}"의 검색 결과

    목차 표시/숨기기

    Class ClipAction

    Base class for a clip action. Inherit from this class to make an action that would react on selected clips after a menu click and/or a key shortcut.

    상속
    object
    ClipAction
    상속된 멤버
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    네임스페이스: UnityEditor.Timeline.Actions
    어셈블리: solution.dll
    구문
    [ActiveInMode(TimelineModes.Default)]
    public abstract class ClipAction
    참고

    To add an action as a menu item in the Timeline context menu, add MenuEntryAttribute on the action class. To make an action to react to a shortcut, use the Shortcut Manager API with TimelineShortcutAttribute. ShortcutAttribute

    예

    Simple Clip Action example (with context menu and shortcut support).

    [MenuEntry("Custom Actions/Sample clip Action")]
    public class SampleClipAction : ClipAction
    {
        public override ActionValidity Validate(IEnumerable<TimelineClip> clip)
        {
            return ActionValidity.Valid;
        }
    
        public override bool Execute(IEnumerable<TimelineClip> items)
        {
            Debug.Log("Test Action");
            return true;
        }
    
        [TimelineShortcut("SampleClipAction", KeyCode.K)]
        public static void HandleShortCut(ShortcutArguments args)
        {
            Invoker.InvokeWithSelectedClips<SampleClipAction>();
        }
    }

    메서드

    이름 설명
    Execute(IEnumerable<TimelineClip>)

    Execute the action based on clips.

    Validate(IEnumerable<TimelineClip>)

    Defines the validity of an Action for a given set of clips.

    문서 개요
    맨 위로
    Copyright © 2023 Unity Technologies — 상표 및 이용약관
    • 법률정보
    • 개인정보처리방침
    • 쿠키
    • 내 개인정보 판매 금지
    • Your Privacy Choices (Cookie Settings)