Version: 2022.3
Language : English
Parallel jobs
Property bags

Unity Properties

You can use the Unity Properties API to visit .Net objects at runtime. The Properties API is in the Unity.Properties namespace and it uses a visitor design pattern to visit .Net objects at runtime. The visitor pattern is a design pattern that allows you to add new operations to an existing object structure without modifying the structure itself. You can build various functionalities on top of the visitor pattern, such as serialization, data migration, deep data comparisons, and data binding.

Unity Properties allows you to use visitors on any given type. You can use the Properties API to do the following:

  • Create data types compatible with the Properties API
  • Develop new property visitors and adapters for domain-specific use cases
Topic Description
Property bags Understand the concept and performance considerations about property bags.
Property visitors Understand the concept and performance considerations about property visitors.
Property paths Understand the concept and performance considerations about property paths.
Use PropertyVisitor to create a property visitor Learn how to use the PropertyVisitor base class to create a property visitor from an example.
Use low-level APIs to create a property visitor Learn how to use the IPropertyBagVisitor and IPropertyVisitor interfaces to create a property visitor from an example.

Additional resources

Parallel jobs
Property bags
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961