Struct Texture2DAtlas.TextureIdentifier
A unique identifier for textures used as a Texture2DAtlas.
Implements
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public readonly struct Texture2DAtlas.TextureIdentifier : IEquatable<Texture2DAtlas.TextureIdentifier>
Properties
None
An invalid or default TextureIdentifier.
Declaration
public static Texture2DAtlas.TextureIdentifier None { get; }
Property Value
| Type | Description |
|---|---|
| Texture2DAtlas.TextureIdentifier |
Methods
Equals(TextureIdentifier)
Returns true if other equals the current TextureIdentifier.
Declaration
public bool Equals(Texture2DAtlas.TextureIdentifier other)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture2DAtlas.TextureIdentifier | other | Other TextureIdentifier to compare to. |
Returns
| Type | Description |
|---|---|
| bool | True if equal. |
GetHashCode()
Get hash code for the TextureIdentifier.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | Hash code. |
Overrides
Operators
operator ==(TextureIdentifier, TextureIdentifier)
Equality operator.
Declaration
public static bool operator ==(Texture2DAtlas.TextureIdentifier left, Texture2DAtlas.TextureIdentifier right)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture2DAtlas.TextureIdentifier | left | First operand. |
| Texture2DAtlas.TextureIdentifier | right | Second operand. |
Returns
| Type | Description |
|---|---|
| bool | True if equal. |
operator !=(TextureIdentifier, TextureIdentifier)
Inequality operator.
Declaration
public static bool operator !=(Texture2DAtlas.TextureIdentifier left, Texture2DAtlas.TextureIdentifier right)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture2DAtlas.TextureIdentifier | left | First operand. |
| Texture2DAtlas.TextureIdentifier | right | Second operand. |
Returns
| Type | Description |
|---|---|
| bool | True if not equal. |