Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsValid()

Determines whether this EntityId is set to a value other than EntityId.None.
Read time 1 minuteLast updated 10 days ago

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
.