Data used by the generator to create the texture.
Data used by the generator to create the texture.
The GenerationData
property provides access to the data used by the generator to create the texture. This property is nullable, meaning it can hold a value or be null if no generation data is available. It is useful when you need to inspect or modify the parameters that were used to generate a texture.
// Example of accessing the GenerationData property Texture texture = new Texture(); var generationData = texture.GenerationData; if (generationData.HasValue) { // Use the generation data var embeddedResource = generationData.Value; // Perform operations with embeddedResource } else { // Handle the case where there is no generation data }