文档

Unity Engine

Download Unity

Unity Engine

CreatePropertyAttribute

Use this attribute to have a property generated for the member.
阅读时间1 分钟最后更新于 2 个月前

Definition

  • Type: Class
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.PropertiesModule
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]public class CreatePropertyAttribute : RequiredMemberAttribute

Remarks

By default public fields will have properties generated.

Properties

Property

Description

ReadOnlyIndicates if the property should generate a setter.