Method SetTexture
SetTexture(XRReferenceImageLibrary, int, Texture2D, bool)
Set the texture on the reference image.
Declaration
public static void SetTexture(this XRReferenceImageLibrary library, int index, Texture2D texture, bool keepTexture)
Parameters
Type | Name | Description |
---|---|---|
XRReferenceImageLibrary | library | The XRReferenceImageLibrary being extended. |
int | index | The reference image index to modify. |
Texture2D | texture | The texture to set. |
bool | keepTexture | Whether to store a strong reference to the texture. If |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
IndexOutOfRangeException | Thrown if |