Description
The WithSize
method of the TextureCubeBuilder
class allows you to specify the dimensions of the texture cube you are building. This method sets the width and height of the texture cube, which are essential parameters for defining the size of the texture.
Usage
To use the WithSize
method, call it on an instance of TextureCubeBuilder
and pass the desired width and height as integer parameters. This method returns the TextureCubeBuilder
instance, allowing for method chaining.
Example
// Example of using WithSize method
TextureCubeBuilder builder = new TextureCubeBuilder();
builder.WithSize(256, 256);
Texture texture = builder.Finish();