Class MarsVideoPlayableAsset | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class MarsVideoPlayableAsset

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

    Inheritance
    Object
    MarsVideoPlayableAsset
    Namespace: Unity.MARS.Recording
    Syntax
    [Serializable]
    public class MarsVideoPlayableAsset : PlayableAsset

    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

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023