Class VisionOSVideoComponent
A custom component to provide video capabilities to a target platform.
Inherited Members
Component.GetComponentIndex()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Scene)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.PolySpatial
Assembly: solution.dll
Syntax
public class VisionOSVideoComponent : MonoBehaviour
Properties
clip
Declaration
public VideoClip clip { get; set; }
Property Value
Type | Description |
---|---|
VideoClip |
isLooping
Declaration
public bool isLooping { get; set; }
Property Value
Type | Description |
---|---|
bool |
playOnAwake
Declaration
public bool playOnAwake { get; set; }
Property Value
Type | Description |
---|---|
bool |
targetMaterialRenderer
Declaration
public MeshRenderer targetMaterialRenderer { get; set; }
Property Value
Type | Description |
---|---|
MeshRenderer |
Methods
GetDirectAudioMute(ushort)
Declaration
public bool GetDirectAudioMute(ushort trackIndex)
Parameters
Type | Name | Description |
---|---|---|
ushort | trackIndex |
Returns
Type | Description |
---|---|
bool |
GetDirectAudioVolume(ushort)
Declaration
public float GetDirectAudioVolume(ushort trackIndex)
Parameters
Type | Name | Description |
---|---|---|
ushort | trackIndex |
Returns
Type | Description |
---|---|
float |
GetState()
Declaration
public VisionOSVideoComponent.PlayerState GetState()
Returns
Type | Description |
---|---|
VisionOSVideoComponent.PlayerState |
Pause()
Declaration
public void Pause()
Play()
Declaration
public void Play()
SetDirectAudioMute(ushort, bool)
Declaration
public void SetDirectAudioMute(ushort trackIndex, bool mute)
Parameters
Type | Name | Description |
---|---|---|
ushort | trackIndex | |
bool | mute |
SetDirectAudioVolume(ushort, float)
Declaration
public void SetDirectAudioVolume(ushort trackIndex, float volume)
Parameters
Type | Name | Description |
---|---|---|
ushort | trackIndex | |
float | volume |
Stop()
Declaration
public void Stop()