The GameResource class in the Sandbox
namespace represents assets defined in C# and created through tools. It allows developers to define custom asset types, providing a flexible way to manage game resources.
The GameResource class in the Sandbox
namespace represents assets defined in C# and created through tools. It allows developers to define custom asset types, providing a flexible way to manage game resources.
Member Name | Summary |
---|---|
StateHasChanged | Should be called after the resource has been edited by the inspector. |
GetReferencedPackages | Get a list of packages that are needed to load this asset. |
Serialize | Serialize the current state to a JsonObject. |
LoadFromJson | Loads the resource state from a JSON string. |
Deserialize | Deserialize the resource state from a JsonObject. |
HasUnsavedChanges | True if this resource has changed but the changes aren't written to disk. |
ResourceVersion | The version of the component. Used by JsonUpgrader. |
IsValid | Indicates whether the resource is valid. |