文档

Unity Engine

Unity Engine

GeneratePropertyBagsForTypeAttribute

Use this attribute to have the source generator generate a property bag for a given type. This attribute works for the specified type ONLY, it does NOT include derived types.
阅读时间3 分钟最后更新于 1 个月前

Definition

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]public class GeneratePropertyBagsForTypeAttribute : Attribute

Remarks

If you need to generate property bags for types implementing a specific interface use GeneratePropertyBagsForTypesQualifiedWithAttribute.

Constructors

Constructor

Description

GeneratePropertyBagsForTypeAttribute(System.Type)Initializes a new instance of the GeneratePropertyBagsForTypeAttribute attribute.

Properties

Property

Description

TypeThe type to generate a property bag for.

Inheritance

Inherited Members