TextureArrayBuilderclass

object→TextureArrayBuilder
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.TextureArrayBuilder

Constructors1

Showing 1 constructors

Methods23

Showing 23 methods

public Sandbox.Texture Finish()PUBLIC

Build and create the actual texture

Returns:Texture—

public Sandbox.TextureArrayBuilder WithAnonymous(bool isAnonymous)PUBLIC

Set whether the texture is an anonymous texture or not

ParameterTypeDescription
isAnonymousboolSet if it's anonymous or not

public Sandbox.TextureArrayBuilder WithName(string name)PUBLIC

Provide a name to identify the texture by, allowing it to be retrieved with `Sandbox.Texture.Load(System.String,System.Boolean)`.

ParameterTypeDescription
namestringDesired texture name

public Sandbox.TextureArrayBuilder WithSize(int width = 1, int height = 1)PUBLIC

Create texture with a predefined size

ParameterTypeDescription
width = 1intWidth in pixel
height = 1intHeight in pixels

On this page