Struct Binary.TraitIndex
Denotes an index into the list of traits contained in the runtime asset.
Namespace: Unity.Kinematica
Syntax
public struct TraitIndex
Properties
Empty
Empty codebook index.
Declaration
public static Binary.TraitIndex Empty { get; }
Property Value
| Type | Description |
|---|---|
| Binary.TraitIndex |
Methods
Equals(Binary.TraitIndex)
Determines whether two trait indices are equal.
Declaration
public bool Equals(Binary.TraitIndex traitIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Binary.TraitIndex | traitIndex | The index to compare against the current index. |
Returns
| Type | Description |
|---|---|
| Boolean | True if the specified index is equal to the current index; otherwise, false. |
Operators
Implicit(Int32 to Binary.TraitIndex)
Implicit conversion from an integer value to a trait index.
Declaration
public static implicit operator Binary.TraitIndex(int traitIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | traitIndex |
Returns
| Type | Description |
|---|---|
| Binary.TraitIndex |
Implicit(Binary.TraitIndex to Int32)
Implicit conversion from a trait index to an integer value.
Declaration
public static implicit operator int (Binary.TraitIndex traitIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Binary.TraitIndex | traitIndex |
Returns
| Type | Description |
|---|---|
| Int32 |