s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
GameResource
chevron_left
Classes
class
GameResource
search
Constructors
lock
GameResource
Properties
lock
ActionGraphTarget
lock
ActionGraphTargetType
data_object
HasUnsavedChanges
data_object
IsValid
data_object
ResourceVersion
Methods
functions
Deserialize
functions
GetReferencedPackages
functions
LoadFromJson
lock
OnDestroy
lock
OnJsonSerialize
lock
PostLoad
lock
PostReload
functions
Serialize
functions
StateHasChanged
GameResource
Assets defined in C# and created through tools. You can define your own Custom Asset Types.
class
Sandbox
.
account_tree
extends
Resource
abstract
Sandbox.Engine
build
Constructors
1
GameResource
(
)
data_object
Properties
5
ActionGraphTarget
object
Target instance used for any action graphs contained in this resource. Defaults to this resource itself.
ActionGraphTargetType
Type
Target type used for any action graphs contained in this resource. Defaults to this resource's type.
HasUnsavedChanges
bool
True if this resource has changed but the changes aren't written to disk
IsValid
bool
ResourceVersion
int
The version of the component. Used by Sandbox.JsonUpgrader.
functions
Methods
9
Deserialize
(
jso
)
Deserialize values from a JsonObject
GetReferencedPackages
(
)
IEnumerable`1
Get a list of packages that are needed to load this asset
LoadFromJson
(
json
)
OnDestroy
(
)
Called when this resource is being unloaded. Clean up any resources owned by this instance here.
OnJsonSerialize
(
node
)
Called after we serialize, allowing you to store any extra or modify the output.
PostLoad
(
)
Called when the asset is first loaded from disk.
PostReload
(
)
Called when the asset is recompiled/reloaded from disk.
Serialize
(
)
JsonObject
Serialize the current state to a JsonObject
StateHasChanged
(
)
Should be called after the resource has been edited by the inspector
Inheritance
Resource
GameResource
Clothing
ClutterDefinition
DecalDefinition
MovieResource
NavMeshAreaDefinition
PrefabFile
RenderTextureAsset
ResourceExtension<T>
ResourceExtension<T,TSelf>
SceneFile
SoundEvent
Soundscape
Sprite
Surface
TerrainMaterial
TerrainStorage
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.