文档

Unity Engine


User Manual

Script Reference

Unity Engine


RequiresComponentOfTypeAttribute(Type)

Initializes the attribute with the required component type.
阅读时间1 分钟最后更新于 23 天前

Definition

public RequiresComponentOfTypeAttribute(Type componentType)

Parameters

componentType

A struct decorated with VisualElementComponentAttribute.