Method SetSize
SetSize(XRReferenceImageLibrary, int, Vector2)
Sets the XRReferenceImage.size value on the XRReferenceImage at index.
This value is read-only in the Player; it can only be modified in the Editor.
Declaration
public static void SetSize(this XRReferenceImageLibrary library, int index, Vector2 size)
Parameters
| Type | Name | Description |
|---|---|---|
| XRReferenceImageLibrary | library | The |
| int | index | The index of the reference image within the library to modify. |
| Vector2 | size |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
| IndexOutOfRangeException | Thrown if |