docs.unity3d.com
    显示 / 隐藏目录

    Class MarsVideoPlayableAsset

    A Playable Asset for a Video Clip that plays in MARS simulation

    Inheritance
    Object
    Object
    ScriptableObject
    PlayableAsset
    MarsVideoPlayableAsset
    Inherited Members
    PlayableAsset.duration
    PlayableAsset.outputs
    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, Boolean)
    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, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    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
    Namespace: Unity.MARS.Recording
    Syntax
    [Serializable]
    public class MarsVideoPlayableAsset : PlayableAsset, IPlayableAsset

    Properties

    FocalLength

    Declaration
    public float FocalLength { get; }
    Property Value
    Type Description
    Single

    PreparationTime

    The amount of time, in seconds, to wait at the start of the Timeline Clip before playing the video. This should be enough time for the Video Player to prepare for playback.

    Declaration
    public double PreparationTime { get; set; }
    Property Value
    Type Description
    Double

    VideoClip

    The Video Clip to play

    Declaration
    public VideoClip VideoClip { get; set; }
    Property Value
    Type Description
    VideoClip

    Methods

    CreatePlayable(PlayableGraph, GameObject)

    Inject a Mars Video Playable Behaviour into the given graph

    Declaration
    public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
    Parameters
    Type Name Description
    PlayableGraph graph

    The graph to inject playables into

    GameObject owner

    The game object which initiated the build. This must have a RecordedSessionDirector component.

    Returns
    Type Description
    Playable

    The playable injected into the graph

    Overrides
    PlayableAsset.CreatePlayable(PlayableGraph, GameObject)
    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)