Class ColorScaleBiasExtension
Subclass of CompositionLayerExtension to support color scaling and biasing for the CompositionLayer instance on the same game object.
Support for this component is up the the instance of ILayerProvider currently assigned to the CompositionLayerManager.
If this extension is not added to a layer game object, it is expected that the provider will assume no color scale/bias is to be applied.
Inheritance
ColorScaleBiasExtension
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.XR.CompositionLayers.Extensions
Assembly: solution.dll
Syntax
[ExecuteAlways]
[DisallowMultipleComponent]
[AddComponentMenu("XR/Composition Layers/Extensions/Color Scale and Bias")]
public class ColorScaleBiasExtension : CompositionLayerExtension
Properties
Bias
The value used to bias a given color by.
Declaration
public Vector4 Bias { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
Scale
The value used to scale a given color by.
Declaration
public Vector4 Scale { get; set; }
Property Value
Type | Description |
---|---|
Vector4 |
Target
Options for which type of object this extension should be associated with.
Declaration
public override CompositionLayerExtension.ExtensionTarget Target { get; }
Property Value
Type | Description |
---|---|
CompositionLayerExtension.ExtensionTarget |
Overrides
Methods
GetNativeStructPtr()
Return a pointer to this extension's native struct.
Declaration
public override void* GetNativeStructPtr()
Returns
Type | Description |
---|---|
void* | the pointer to colorScaleBias extension's native struct. |
Overrides
OnDestroy()
MonoBehaviour is a base class that many Unity scripts derive from.
Declaration
public override void OnDestroy()