Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

SortingLayer.IsValid

Declaration

public static bool IsValid(int id);

Parameters

id The unique id of a layer.

Returns

bool True if the id provided is valid and assigned to a layer.

Description

Returns true if the id provided is a valid layer id.