Class AffordanceVisibilityDefinition
Definition containing data utilized to change the visual appearance of an affordance for various actions
Namespace: UnityEditor.Experimental.EditorVR.Core
Syntax
[Serializable]
public class AffordanceVisibilityDefinition
Fields
affordanceVisibilityCoroutine
The coroutine that performs animated visibility changes for this affordance
Declaration
public Coroutine affordanceVisibilityCoroutine
Field Value
Type | Description |
---|---|
Coroutine |
Properties
alphaProperty
The name of the shader parameter utilized to animate alpha changes to this affordance, if the visibility type is set to ALPHA
Declaration
public string alphaProperty { get; }
Property Value
Type | Description |
---|---|
String |
colorProperty
The name of the shader parameter utilized to animate color changes to this affordance, if the visibility type is set to COLOR
Declaration
public string colorProperty { get; }
Property Value
Type | Description |
---|---|
String |
hiddenAlpha
The hidden alpha value of the material
Declaration
public float hiddenAlpha { get; }
Property Value
Type | Description |
---|---|
Single |
hiddenColor
The hidden color of the material
Declaration
public Color hiddenColor { get; }
Property Value
Type | Description |
---|---|
Color |
hiddenMaterial
The material to with which to swap instead of animating visibility (material blending is not supported)
Declaration
public Material hiddenMaterial { get; }
Property Value
Type | Description |
---|---|
Material |
visibilityType
The type of visibility changes that will be performed on this affordance (color change, alpha change, material swap, etc)
Declaration
public ProxyAffordanceMap.VisibilityControlType visibilityType { get; }
Property Value
Type | Description |
---|---|
ProxyAffordanceMap.VisibilityControlType |