文档

Unity Engine

Unity Engine

DelegateProperty(string, PropertyGetter<TContainer, TValue>, PropertySetter<TContainer, TValue>)

Initializes a new instance of the DelegateProperty<TContainer, TValue> class.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Constructor
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.PropertiesModule

DelegateProperty(string, PropertyGetter<T, T>, PropertySetter<T, T>)

public DelegateProperty(string name, PropertyGetter<TContainer, TValue> getter, PropertySetter<TContainer, TValue> setter = null)

Parameters

name

The property name.

The delegate to use when accessing the property value.

The delegate to use when setting the property value.