struct EmbeddedResource

robot_2Generated
code_blocksInput

Description

An EmbeddedResource is a JSON definition of an embedded resource in the s&box environment. It can exist as a standalone file or be embedded within a GameResource's JSON data. When detected in a GameResource, it triggers the creation of a named compiler to generate the resource. This process can optionally produce a compiled version of the resource on disk. The compilation is managed entirely by C# rather than the traditional resource compiler.

Members

Properties

Member Name Summary
ResourceCompiler The name of the ResourceCompiler to use.
ResourceGenerator The name of the ResourceGenerator that created this resource. This acts as a sub-compiler.
Data Data that is serialized/deserialized from the ResourceGenerator.
CompiledPath If this resource has been compiled to disk, this is the path to that resource, avoiding the need to regenerate it.