Constructor XRReferenceImage
XRReferenceImage(SerializableGuid, SerializableGuid, Vector2?, string, Texture2D)
Constructs a XRReferenceImage.
Declaration
public XRReferenceImage(SerializableGuid guid, SerializableGuid textureGuid, Vector2? size, string name, Texture2D texture)
Parameters
Type | Name | Description |
---|---|---|
SerializableGuid | guid | The Guid associated with this image. |
SerializableGuid | textureGuid | The Guid of the source texture as it appeared in the AssetDatabase in the Editor. |
Vector2? | size | Optional. The size of the image, in meters. This can improve image detection, and might be required by some platforms. |
string | name | A name associated with this reference image. |
Texture2D | texture | The source texture which this reference image represents.
This can be |