Table of Contents

Class MediaPlayerLayerExtension

Namespace
AVProVideo.XR.CompositionLayers.Extensions
Assembly
AVProVideo.XR.CompositionLayers.dll

Subclass of Unity.XR.CompositionLayers.CompositionLayerExtension to support explicitly setting the MediaPlayer instance to use when rendering video to a composition layer.

Support for this component requires that the Unity.XR.CompositionLayers.CompositionLayer component layer type is one of the AVPro Video layer types.

If this extension is not added then it is expected that a MediaPlayer component is attached to the game object.

[ExecuteAlways]
[DisallowMultipleComponent]
[AddComponentMenu("XR/Composition Layers/Extensions/AVPro Video - MediaPlayer")]
public class MediaPlayerLayerExtension : CompositionLayerExtension
Inheritance
CompositionLayerExtension
MediaPlayerLayerExtension
Inherited Members
CompositionLayerExtension.ReportStateChange
CompositionLayerExtension.Awake()
CompositionLayerExtension.OnDestroy()
CompositionLayerExtension.OnEnable()
CompositionLayerExtension.OnDisable()
CompositionLayerExtension.UpdateValue<T>(T, T)
MonoBehaviour.IsInvoking()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.runInEditMode
Component.GetComponent<T>()
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentsInParent<T>()
Component.GetComponentIndex()
Component.transform
Component.gameObject
Component.tag
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, Vector3, Quaternion)
Object.Instantiate(Object)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.name
Object.hideFlags

Properties

MediaPlayer

Gets or sets the MediaPlayer instance to use.

public MediaPlayer MediaPlayer { get; set; }

Property Value

MediaPlayer

Target

public override CompositionLayerExtension.ExtensionTarget Target { get; }

Property Value

CompositionLayerExtension.ExtensionTarget

Methods

GetNativeStructPtr()

public override void* GetNativeStructPtr()

Returns

void*