Version: 2022.3

Scene.operator ==

切换到手册
public static bool operator == (SceneManagement.Scene lhs, SceneManagement.Scene rhs);

描述

如果场景相同,则返回 true。

When a scene is loaded into memory, it can be referenced with a Scene struct. The equality operator checks if two Scene structs refer to the same scene in memory.