ドキュメント

Unity Engine

Unity Engine

HasComponent<T>()

Checks whether a component of type T is attached to this element.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public bool HasComponent<T>() where T : struct, IVisualElementComponent

Returns

Type

Description

bool
true
if the component is attached; otherwise
false
.