文档

Unity Engine

Unity Engine

IsValid()

Determines whether this EntityId is set to a value other than EntityId.None.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool IsValid()

Returns

Type

Description

boolTrue if this EntityId is valid; otherwise, false.

Remarks

A valid
EntityId
isn't necessarily the identifier of an object that is currently loaded. To check whether the identified object is loaded, use
Resources.EntityIdIsValid
.