{!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 TrackAsset | Timeline | 1.5.0-preview.5
docs.unity3d.com
"{0}" の検索結果

    目次を表示する/隠す

    Class TrackAsset

    A PlayableAsset representing a track inside a timeline.

    Inheritance
    object
    Object
    ScriptableObject
    PlayableAsset
    TrackAsset
    ActivationTrack
    AnimationTrack
    AudioTrack
    ControlTrack
    GroupTrack
    MarkerTrack
    PlayableTrack
    Implements
    IPlayableAsset
    IPropertyPreview
    ISerializationCallbackReceiver
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.Timeline
    Assembly: solution.dll
    Syntax
    [Serializable]
    public abstract class TrackAsset : PlayableAsset, IPlayableAsset, IPropertyPreview, ISerializationCallbackReceiver
    Remarks

    Derive from TrackAsset to implement custom timeline tracks. TrackAsset derived classes support the following attributes:

    HideInMenuAttribute TrackColorAttribute TrackClipTypeAttribute TrackBindingTypeAttribute DisplayNameAttribute

    Examples
    using UnityEngine;
    using UnityEngine.Timeline;
    
    [DisplayName("Custom Lighting Track")]
    [TrackColor(1,0,0)]
    [TrackBindingType(typeof(Light))]
    [TrackClipType(typeof(PointLightClip))]
    [TrackClipType(typeof(SpotLightClip))]
    public class LightTrack : TrackAsset
    {
    }

    Fields

    Name Description
    m_Clips

    Properties

    Name Description
    curves

    An animation clip storing animated properties of the attached PlayableAsset

    duration

    The length, in seconds, of this track

    end

    The end time, in seconds, of this track

    hasClips

    Whether this track contains any TimelineClip.

    hasCurves

    Whether this track contains animated properties for the attached PlayableAsset.

    isEmpty

    Whether this track is considered empty.

    isSubTrack

    Returns whether this track is a subtrack

    locked

    The local locked state of the track.

    lockedInHierarchy

    The locked state of a track. (RO)

    muted

    Whether the track is muted or not.

    mutedInHierarchy

    The muted state of a track.

    outputs

    Returns a description of the PlayableOutputs that will be created by this track.

    parent

    The owner of this track.

    start

    The start time, in seconds, of this track

    supportsNotifications

    Indicates if a track accepts markers that implement INotification.

    timelineAsset

    The TimelineAsset that this track belongs to.

    Methods

    Name Description
    CalculateItemsHash()
    CreateClip<T>()

    Creates a clip on the track with a playable asset attached, whose derived type is specified by T

    CreateCurves(string)

    Creates an AnimationClip to store animated properties for the attached PlayableAsset.

    CreateDefaultClip()

    Creates a TimelineClip on this track.

    CreateMarker(Type, double)

    Creates a marker of the requested type, at a specific time, and adds the marker to the current asset.

    CreateMarker<T>(double)

    Creates a marker of the requested type, at a specific time, and adds the marker to the current asset.

    CreatePlayable(PlayableGraph, GameObject)

    Overrides PlayableAsset.CreatePlayable(). Not used in Timeline.

    CreatePlayable(PlayableGraph, GameObject, TimelineClip)

    Constructs a Playable from a TimelineClip.

    CreateTrackMixer(PlayableGraph, GameObject, int)

    Creates a mixer used to blend playables generated by clips on the track.

    DeleteClip(TimelineClip)

    Delete a clip from this track.

    DeleteMarker(IMarker)

    Removes a marker from the current asset.

    GatherProperties(PlayableDirector, IPropertyCollector)

    Called by the Timeline Editor to gather properties requiring preview.

    GetAnimationClipHash(AnimationClip)
    GetChildTracks()

    The list of subtracks or child tracks attached to this track.

    GetClips()

    A list of clips owned by this track

    GetMarker(int)

    Returns the marker at a given position, on the current asset.

    GetMarkerCount()

    Returns the number of markers on the current asset.

    GetMarkers()

    Returns an enumerable list of markers on the current asset.

    OnAfterTrackDeserialize()
    OnBeforeTrackSerialize()
    OnCreateClip(TimelineClip)

    Called when a clip is created on a track.

    Extension Methods

    TrackExtensions.IsCollapsed(TrackAsset)
    TrackExtensions.IsVisibleInHierarchy(TrackAsset)
    TrackExtensions.SetCollapsed(TrackAsset, bool)
    TrackAssetExtensions.GetGroup(TrackAsset)
    TrackAssetExtensions.SetGroup(TrackAsset, GroupTrack)
    概要
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)