CVR.Prop
Prop API¶
Provides wrapped access to spawned props. The CVRSpawnable component is not currently bound.
For Prop related events please see Available Events - Prop Events.
Static Members¶
Static Methods¶
| Signature | Description |
|---|---|
| Prop[] GetAllProps() | Returns all props currently active in the instance |
| Prop GetCurrentProp() | Returns the prop associated with the current WasmBehaviour's root, or null if outside a prop |
Instance Members¶
Instance Properties¶
| Signature | Description |
|---|---|
| Player Spawner | Returns the player who spawned this prop |
| GameObject RootObject | The root GameObject of the spawned prop |
| Transform RootTransform | The root Transform of the spawned prop |
| string ContentId | The asset ID of the prop |
Instance Methods¶
| Signature | Description |
|---|---|
| void Destroy() | Destroys the prop; if called on the spawner's client, destroys it for everyone |