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

MemberDescriptionAvailable through
addressNative address from which this scene snapshot was read.
indexUnity build index captured for this scene.
nameFinal filename component without the .unity extension.
pathFull asset path captured from Unity.

Methods

MemberDescriptionAvailable through
findFinds a GameObject by an exact hierarchy path.