The WithName
method of the TextureCubeBuilder
class allows you to specify a name for the texture cube being built. This can be useful for identifying the texture in debugging or logging scenarios.
The WithName
method of the TextureCubeBuilder
class allows you to specify a name for the texture cube being built. This can be useful for identifying the texture in debugging or logging scenarios.
To use the WithName
method, call it on an instance of TextureCubeBuilder
and pass a string representing the desired name of the texture cube. This method returns the same TextureCubeBuilder
instance, allowing for method chaining.
// Example of using WithName method TextureCubeBuilder builder = new TextureCubeBuilder(); builder.WithName("MyTextureCube") .WithSize(256, 256) .WithFormat(ImageFormat.RGBA8) .Finish();