Class MarsVideoPlayableAsset
A Playable Asset for a Video Clip that plays in MARS simulation
Implements
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.MARS.Data.Recorded
Assembly: Unity.MARS.dll
Syntax
[Serializable]
[MovedFrom("Unity.MARS.Recording")]
public class MarsVideoPlayableAsset : PlayableAsset, IPlayableAsset
Properties
FacingDirection
The facing direction of the camera used to record the video
Declaration
public CameraFacingDirection FacingDirection { get; set; }
Property Value
| Type | Description |
|---|---|
| CameraFacingDirection |
FocalLength
The focal length of the camera used to record the video, in pixels
Declaration
public float FocalLength { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
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
[Obsolete("PreparationTime is no longer used and is being deprecated", false)]
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 |
ZRotation
Rotation about the forward axis, in degrees, to apply to the quad rendering the video
Declaration
public float ZRotation { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
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 |