文档

Unity Engine

Download Unity

Unity Engine

HasComponent<T>()

Checks whether a component of type T is attached to this element.
阅读时间1 分钟最后更新于 2 个月前

Definition

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

Returns

Type

Description

bool
true
if the component is attached; otherwise
false
.