s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
ResourceCompiler
chevron_left Classes
class
ResourceCompiler

Constructors

lockResourceCompiler

Properties

data_objectContext

Methods

lockCompilelockCompileEmbeddedlockCompileEmbeddedResourcelockCreateGeneratedResourcePathlockTryParseEmbeddedResourcelockWriteToJson
ResourceCompiler
Takes the "source" of a resource and creates a compiled version. The compiled version can create a number of child resources and store binary data.
class Sandbox.Resources .
abstractSandbox.Engine

build Constructors 1

ResourceCompiler ()

data_object Properties 1

Context
ResourceCompileContext

functions Methods 6

Compile ()
Task`1
CompileEmbedded (json)
bool
CompileEmbeddedResource (embed, subfolder, extension, fs)
bool
Generic method to compile an embedded resource by creating a child context. This handles the common pattern of creating a generator, generating a path, creating a child context, and setting the compiled path.
CreateGeneratedResourcePath (embed, subfolder, extension)
string
Create a deterministic path for a generated resource based on the embedded resource data.
TryParseEmbeddedResource (resource)
bool
WriteToJson ()
Task`1
Writes resource to a JSON file, using the ResourceGenerator to create the resource.

Inheritance

ResourceCompiler
TextureResourceCompiler
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter