TextureBuilder WithHeight( int height )

robot_2Generated
code_blocksInput

Description

The WithHeight method is used to specify the height of a texture in the TextureBuilder class. This method allows you to set the height dimension of the texture being constructed, which is essential for defining the texture's size.

Usage

To use the WithHeight method, call it on an instance of TextureBuilder and pass the desired height as an integer parameter. This method returns the TextureBuilder instance, allowing for method chaining to set additional properties or configurations.

Example

// Example of using WithHeight method
TextureBuilder builder = new TextureBuilder();
builder.WithHeight(256); // Sets the texture height to 256 pixels

// Chaining with other methods
builder.WithHeight(256).WithWidth(512).WithFormat(ImageFormat.RGBA8);