Method SetTexture
SetTexture(Mode, Texture)
Set the texture for a specific target mode.
Declaration
public Texture SetTexture(ProbeSettings.Mode targetMode, Texture texture)
Parameters
| Type | Name | Description |
|---|---|---|
| ProbeSettings.Mode | targetMode | The mode to update. |
| Texture | texture | The texture to set. |
Returns
| Type | Description |
|---|---|
| Texture | The texture that was set. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | When the texture is invalid. |
| ArgumentOutOfRangeException | When the mode is invalid |