TextureResourceCompilerclass

objectResourceCompilerTextureResourceCompiler
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public class Editor.TextureResourceCompiler : Sandbox.Resources.ResourceCompiler

Constructors1

Showing 1 constructors

Methods2

Showing 2 methods

protected virtual System.Threading.Tasks.Task`1<bool> Compile()PROTECTEDVIRTUAL

Returns:Task<bool>

protected virtual bool CompileEmbedded(Sandbox.Resources.EmbeddedResource embed)PROTECTEDVIRTUAL

We found an embedded resource definition. 1. Find the TextureGenerator 2. Create a child texture resource with a deterministic name 3. Put the provided compile data in that and let it compile 4. Store a reference to the compiled version in the json

ParameterTypeDescription
embedEmbeddedResource
Returns:bool

On this page