LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

NetworkInstanceId.IsEmpty

public bool IsEmpty();

Returns

bool True if zero.

Description

Returns true if the value of the NetworkInstanceId is zero.

Object that have not been spawned will have a value of zero.