int ResourceVersion { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The ResourceVersion property of the PrefabFile class represents the version number of the resource. This property is used to track changes and updates to the prefab resource over time. It is an integer value that can be incremented to signify a new version of the resource.

Usage

To access the ResourceVersion property, you need to have an instance of the PrefabFile class. You can then get or set the version number as needed. This property is virtual, allowing derived classes to override its behavior if necessary.

Example

// Example of accessing the ResourceVersion property
PrefabFile prefab = new PrefabFile();
int currentVersion = prefab.ResourceVersion;

// Update the resource version
prefab.ResourceVersion = currentVersion + 1;