GetTexture
Gets the value of a named texture property.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: UnityEngine.VFX
- Assembly: UnityEngine.VFXModule
GetTexture(int)
Gets the value of a named texture property.
public Texture GetTexture(int nameID)
Parameters
The ID of the property. This is the same ID that Shader.PropertyToID returns.
Returns
Type | Description |
|---|---|
| Texture | The value for the texture you specify. Returns |
GetTexture(string)
Gets the value of a named texture property.
public Texture GetTexture(string name)
Parameters
The name of the property.
Returns
Type | Description |
|---|---|
| Texture | The value for the texture you specify. Returns |