Struct Binary.TypeIndex
Denotes an index into the list of types contained in the runtime asset.
Namespace: Unity.Kinematica
Syntax
[Serializable]
public struct TypeIndex
Properties
Invalid
Invalid type index.
Declaration
public static Binary.TypeIndex Invalid { get; }
Property Value
Type | Description |
---|---|
Binary.TypeIndex |
IsValid
Determines if the given type index is valid or not.
Declaration
public bool IsValid { get; }
Property Value
Type | Description |
---|---|
Boolean | True if the type index is valid; false otherwise. |
Methods
Equals(Binary.TypeIndex)
Determines whether two type indices are equal.
Declaration
public bool Equals(Binary.TypeIndex typeIndex)
Parameters
Type | Name | Description |
---|---|---|
Binary.TypeIndex | typeIndex | 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.TypeIndex)
Implicit conversion from an integer value to a type index.
Declaration
public static implicit operator Binary.TypeIndex(int typeIndex)
Parameters
Type | Name | Description |
---|---|---|
Int32 | typeIndex |
Returns
Type | Description |
---|---|
Binary.TypeIndex |
Implicit(Binary.TypeIndex to Int32)
Implicit conversion from a type index to an integer value.
Declaration
public static implicit operator int (Binary.TypeIndex typeIndex)
Parameters
Type | Name | Description |
---|---|---|
Binary.TypeIndex | typeIndex |
Returns
Type | Description |
---|---|
Int32 |