Class ColorScaleBiasExtension
Subclass of Composition
Support for this component is up the the instance of ILayer
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
Inherited Members
Namespace: Unity.XR.CompositionLayers .Extensions
Assembly: Unity.XR.CompositionLayers.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 |
---|---|
Composition |
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()