Description
The ResourceVersion
property of the SoundEvent
class represents the version of the resource. This property is marked as virtual, allowing derived classes to override it if necessary. It is an integer value that is typically used internally to manage resource versions.
This property is decorated with the HideAttribute
and JsonIgnoreAttribute
, indicating that it is not intended to be exposed in the UI or serialized to JSON. This suggests that the property is used for internal purposes, such as version control or compatibility checks, rather than being a part of the public API for sound events.
Usage
Since the ResourceVersion
property is hidden and ignored in JSON serialization, it is not intended for direct use in application code. It is primarily used internally by the Sandbox framework to manage and track the versioning of sound resources. Developers should not rely on this property for application logic or user interface elements.
Example
// Example of accessing the ResourceVersion property
// Note: This property is not intended for direct use in application code
SoundEvent soundEvent = new SoundEvent();
int version = soundEvent.ResourceVersion;
// The version variable now holds the resource version of the sound event
// However, this is typically used internally and not meant for application logic