SplitScript reference / UnityScene
UnityScene
record
record UnityScene
Captures one Unity scene at a particular polling update.
Every public field is copied from process memory before the value is committed to state. Consequently, old scene values remain stable after Unity unloads or reuses their original native addresses.
Examples
Inspect a scene transition
split {
return old.scene.index != current.scene.index
}
Fields
| Member | Description | Available through |
|---|---|---|
| address | Native address from which this scene snapshot was read. | |
| index | Unity build index captured for this scene. | |
| name | Final filename component without the .unity extension. | |
| path | Full asset path captured from Unity. |
Methods
| Member | Description | Available through |
|---|---|---|
| find | Finds a GameObject by an exact hierarchy path. |