Struct LayerDataDescriptor
Defines the meta data that is associated with a Layer
Implements
Inherited Members
Namespace: Unity.XR.CompositionLayers .Layers
Assembly: Unity.XR.CompositionLayers.dll
Syntax
public readonly struct LayerDataDescriptor : IEquatable<LayerDataDescriptor>
Constructors
LayerDataDescriptor(string, string, string, string, string, string, string, bool, bool, Type, Type[])
Creates a new Layer
Declaration
public LayerDataDescriptor(string provider, string name, string typeFullName, string description, string iconPath, string inspectorIcon, string listViewIcon, bool preferOverlay, bool supportTransform, Type dataType, Type[] suggestedExtensions)
Parameters
Type | Name | Description |
---|---|---|
string | provider | The source that is providing the Layer |
string | name | The display name of the Layer |
string | typeFullName | The unique class Id key used for finding the Layer |
string | description | A description of what the Layer |
string | iconPath | The icon used for the inspector of the Layer |
string | inspectorIcon | The icon used for the inspector of the Layer |
string | listViewIcon | The icon used in the Composition Layer Window for Composition |
bool | preferOverlay | Should new instance of the Layer |
bool | supportTransform | This layer type supports world or camera relative transforms. |
Type | dataType | |
Type[] | suggestedExtensions | Suggested extension types to use with the Layer |
Fields
DataType
Declaration
public readonly Type DataType
Field Value
Type | Description |
---|---|
Type |
Description
A description of what the Layer
Declaration
public readonly string Description
Field Value
Type | Description |
---|---|
string |
IconPath
Path to the icon folder used for the Layer
Declaration
public readonly string IconPath
Field Value
Type | Description |
---|---|
string |
InspectorIcon
The icon used for the inspector of the Layer
Declaration
public readonly string InspectorIcon
Field Value
Type | Description |
---|---|
string |
ListViewIcon
The icon used in the Composition Layer Window for Composition
Declaration
public readonly string ListViewIcon
Field Value
Type | Description |
---|---|
string |
Name
The display name of the Layer
Declaration
public readonly string Name
Field Value
Type | Description |
---|---|
string |
PreferOverlay
Should new instance of the Layer
Declaration
public readonly bool PreferOverlay
Field Value
Type | Description |
---|---|
bool |
Provider
The source that is providing the Layer
Declaration
public readonly string Provider
Field Value
Type | Description |
---|---|
string |
SuggestedExtensions
Suggested extension types to use with the Layer
Declaration
public readonly Type[] SuggestedExtensions
Field Value
Type | Description |
---|---|
Type[] |
SupportTransform
This layer type supports world or camera relative transforms.
Declaration
public readonly bool SupportTransform
Field Value
Type | Description |
---|---|
bool |
TypeFullName
The full type name used for identifying this Layer
Declaration
public readonly string TypeFullName
Field Value
Type | Description |
---|---|
string |
Properties
Empty
Layer
Declaration
public static LayerDataDescriptor Empty { get; }
Property Value
Type | Description |
---|---|
Layer |
Methods
Equals(object)
Determines whether this instance obj
is equal to the current Layer
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object for comparison. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current Layer |
Overrides
Equals(LayerDataDescriptor)
Determines whether the specified Layer
Declaration
public bool Equals(LayerDataDescriptor other)
Parameters
Type | Name | Description |
---|---|---|
Layer |
other | The Layer |
Returns
Type | Description |
---|---|
bool | true if the specified Layer |
GetHashCode()
Returns the hash code for the current Layer
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current Layer |
Overrides
Operators
operator ==(LayerDataDescriptor, LayerDataDescriptor)
Determines whether two specified Layer
Declaration
public static bool operator ==(LayerDataDescriptor left, LayerDataDescriptor right)
Parameters
Type | Name | Description |
---|---|---|
Layer |
left | The first Layer |
Layer |
right | The second Layer |
Returns
Type | Description |
---|---|
bool | true if the two Layer |
operator !=(LayerDataDescriptor, LayerDataDescriptor)
Determines whether two specified Layer
Declaration
public static bool operator !=(LayerDataDescriptor left, LayerDataDescriptor right)
Parameters
Type | Name | Description |
---|---|---|
Layer |
left | The first Layer |
Layer |
right | The second Layer |
Returns
Type | Description |
---|---|
bool | true if the two Layer |