Description
The ComponentVersion
property of the Tonemapping
class represents the version of the component. This property is virtual, allowing derived classes to override it if necessary. It is an integer value that can be used to track changes or updates to the component's implementation.
Usage
To access the ComponentVersion
property, you need to have an instance of the Tonemapping
class. You can then get or set the version number as needed. This property is useful for maintaining compatibility and ensuring that the correct version of the component is being used.
Example
// Example of accessing the ComponentVersion property
Tonemapping tonemapping = new Tonemapping();
int version = tonemapping.ComponentVersion;
// Output the version
// Note: Avoid using Console.WriteLine in Sandbox
// Instead, use a logging system or UI element to display the version
Log.Info($"Tonemapping Component Version: {version}");