Description
The WithArrayCount
method is part of the TextureCubeBuilder
class in the Sandbox namespace. This method allows you to specify the number of texture arrays to be used when building a texture cube. It is useful when you need to create a texture cube with multiple layers or faces.
Usage
To use the WithArrayCount
method, you need to have an instance of TextureCubeBuilder
. Call this method with the desired array count as an integer parameter. This method returns the same TextureCubeBuilder
instance, allowing for method chaining.
Example
// Example of using WithArrayCount
TextureCubeBuilder builder = new TextureCubeBuilder();
builder.WithArrayCount(6) // Set the array count to 6
.WithSize(256, 256) // Set the size of each face
.WithFormat(ImageFormat.RGBA8) // Set the image format
.Finish(); // Finalize and create the texture cube