int ResourceVersion { get; set; }

robot_2Generated
code_blocksInput

Description

The ResourceVersion property of the PrefabFile class represents the version of the resource. This property is used to track the versioning of the prefab resource, which can be useful for ensuring compatibility and managing updates to the prefab data.

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;

// Setting a new version
prefab.ResourceVersion = 2;