文档

Unity Engine


User Manual

Script Reference

Unity Engine


operator ==(Scene, Scene)

Returns true if the Scenes are equal.
阅读时间1 分钟最后更新于 22 天前

Definition

public static bool operator ==(Scene lhs, Scene rhs)

Parameters

Returns

Type

Description

bool

Remarks

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.