class GameResource : Resource

robot_2Generated
code_blocksInput

Description

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.

Members

Instance Members

Member NameSummary
StateHasChangedShould be called after the resource has been edited by the inspector.
GetReferencedPackagesGet a list of packages that are needed to load this asset.
SerializeSerialize the current state to a JsonObject.
LoadFromJsonLoads the resource state from a JSON string.
DeserializeDeserialize the resource state from a JsonObject.
HasUnsavedChangesTrue if this resource has changed but the changes aren't written to disk.
ResourceVersionThe version of the component. Used by JsonUpgrader.
IsValidIndicates whether the resource is valid.