文档

Unity Engine

Unity Engine

IsValid(int)

Returns true if the id provided is a valid layer id.
阅读时间1 分钟最后更新于 13 小时前

Definition

public static bool IsValid(int id)

Parameters

id

The unique id of a layer.

Returns

Type

Description

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