Texture2DBuilderclass

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

Constructors1

Showing 1 constructors

Methods25

Showing 25 methods

public Sandbox.Texture Finish()PUBLIC

Build and create the actual texture

Returns:Texture—

public Sandbox.Texture2DBuilder WithAnonymous(bool isAnonymous)PUBLIC

Set whether the texture is an anonymous texture or not

ParameterTypeDescription
isAnonymousboolSet if it's anonymous or not
Returns:Texture2DBuilder—

public Sandbox.Texture2DBuilder 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
Returns:Texture2DBuilder—

On this page