class Resource

book_4_sparkGenerated
code_blocksInput

Description

The Resource class represents a resource loaded in the engine, such as a Model or Material. It provides properties and methods to manage and interact with these resources.

Members

Instance Members

Member NameSummary
ResourceIdID of this resource.
ResourcePathPath to this resource.
ResourceNameFile name of the resource without the extension.
IsValidIndicates whether the resource is valid.
HasUnsavedChangesTrue if this resource has been changed but the changes aren't written to disk.
StateHasChangedShould be called after the resource has been edited by the inspector.