Class SimulatedTrackedImage
Marks an object in a simulation environment as a source from which to provide a tracked image. This component is required by the SimulationImageTrackingSubsystem on all GameObjects which represent tracked images in an environment.
Inherited Members
Namespace: UnityEngine.XR.Simulation
Assembly: Unity.XR.Simulation.dll
Syntax
[ExecuteInEditMode]
[RequireComponent(typeof(MeshFilter))]
[RequireComponent(typeof(MeshRenderer))]
[DisallowMultipleComponent]
public class SimulatedTrackedImage : MonoBehaviour
Properties
fallbackSourceImageId
A unique 128-bit ID associated with the content of the tracked image.
Declaration
public Guid fallbackSourceImageId { get; }
Property Value
Type | Description |
---|---|
Guid |
Remarks
This method should only be used as a fallback strategy to generate a GUID,
in the event that the SimulationImageTrackingSubsystem's
runtime reference image library does not contain a reference image matching our image
.
imageAssetGuid
The unique 128-bit ID associated with the asset file of the above texture.
Declaration
public Guid imageAssetGuid { get; }
Property Value
Type | Description |
---|---|
Guid |
size
The world-space width and height of the tracked image.
Declaration
public Vector2 size { get; }
Property Value
Type | Description |
---|---|
Vector2 |
texture
The tracked image's texture. If the user does not provide a texture at edit time, a new texture will be generated at runtime.
Declaration
public Texture2D texture { get; }
Property Value
Type | Description |
---|---|
Texture2D |
trackableId
The TrackableId for the tracked image.
Declaration
public TrackableId trackableId { get; }
Property Value
Type | Description |
---|---|
TrackableId |