기술 자료

Unity Engine

Unity Engine

ClassListContains

Searches for a class in the class list of this element.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

ClassListContains(string)

Searches for a class in the class list of this element.
public bool ClassListContains(string cls)

Parameters

The name of the class for the search query.

Returns

Type

Description

boolReturns true if the class is part of the list. Otherwise, returns false.

Remarks

This method always returns false if class name is null or empty.

ClassListContains(UniqueStyleString)

Searches for a class in the class list of this element.
public bool ClassListContains(UniqueStyleString cls)

Parameters

The name of the class for the search query.

Returns

Type

Description

boolReturns true if the class is part of the list. Otherwise, returns false.

Remarks

This method always returns false if class name is null or empty.