Property destroyOnRemoval
destroyOnRemoval
If true, this component's GameObject
will be removed immediately when the XR device reports this trackable is no longer tracked.
Declaration
public bool destroyOnRemoval { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
Setting this to false will keep the GameObject
around. You might want to do this, for example,
if you have custom removal logic, such as a fade out.