# SecondarySpriteTexture

> Encapsulates a Texture2D and its shader property name to give Sprite-based renderers access to a secondary texture, in addition to the main Sprite texture.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IEquatable\<SecondarySpriteTexture>](https://learn.microsoft.com/dotnet/api/system.iequatable-1)

```csharp
public struct SecondarySpriteTexture : IEquatable<SecondarySpriteTexture>
```

## Fields

| Value                                                                                    | Description                                                                                                               |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [name](/engine/6000.5/script-reference/unityengine/secondaryspritetexture/name.md)       | The shader property name of the secondary Sprite texture. Use this name to identify and sample the texture in the shader. |
| [texture](/engine/6000.5/script-reference/unityengine/secondaryspritetexture/texture.md) | The texture to be used as a secondary Sprite texture.                                                                     |

## Methods

| Method                                                                                           | Description                                                                                          |
| ------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------- |
| [Equals](/engine/6000.5/script-reference/unityengine/secondaryspritetexture/equals.md)           | Compares this SecondarySpriteTexture object to another one.                                          |
| [GetHashCode](/engine/6000.5/script-reference/unityengine/secondaryspritetexture/gethashcode.md) | Returns a unique hash code computed from the name and texture of this SecondarySpriteTexture object. |

## Operators

| Operator                                                                                           | Description                                                                         |
| -------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [operator ==](/engine/6000.5/script-reference/unityengine/secondaryspritetexture/op-equality.md)   | Compares two SecondarySpriteTexture objects and returns true if they are equal.     |
| [operator !=](/engine/6000.5/script-reference/unityengine/secondaryspritetexture/op-inequality.md) | Compares two SecondarySpriteTexture objects and returns true if they are not equal. |
