文档

Unity Engine

Unity Engine

IProperty

Base interface for working with properties.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Interface
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.PropertiesModule
public interface IProperty

Remarks

This is used to pass or store properties without knowing the underlying container or value type. " IProperty<TContainer> " Property<TContainer, TValue>

Properties

Property

Description

IsReadOnlyGets a value indicating whether the property is read-only or not.
NameGets the name of the property.

Methods

Method

Description

DeclaredValueTypeReturns the declared value type of the property.
GetAttributeReturns the first attribute of the given type.
GetAttributesReturns all attribute for this property.
HasAttributeReturns true if the property has any attributes of the given type.