Class UsdPayload
Inherited Members
Namespace: Unity.Formats.USD
Syntax
[ExecuteInEditMode]
public class UsdPayload : MonoBehaviour
Properties
IsLoaded
Returns true of the prim is currently loaded. Note that this will return the currently requested load state, which may be pending to be applied on the next update.
Declaration
public bool IsLoaded { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Load()
Sets the current state to loaded. The actual chagne will be applied on next Update().
Declaration
public void Load()
SetInitialState(Boolean)
Sets the current state without triggering load/unload operation from the USD scene state.
Declaration
public void SetInitialState(bool loaded)
Parameters
Type | Name | Description |
---|---|---|
Boolean | loaded |
Unload()
Sets the current state to unloaded. The actual change will be applied on next Update().
Declaration
public void Unload()
Update()
Synchronize the current state in Unity into the USD scenegraph.
Declaration
public void Update()