Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RegisterIDictionary

Creates and registers a IPropertyBag<TContainer> for the specified IDictionary_2 type.
Read time 1 minuteLast updated 10 days ago

Definition

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

RegisterIDictionary<T, U, V>()

Creates and registers a IPropertyBag<TContainer> for the specified IDictionary_2 type.
public static void RegisterIDictionary<TDictionary, TKey, TValue>() where TDictionary : IDictionary<TKey, TValue>

Remarks

To generate AOT paths for visitors use RegisterIDictionary{TContainer, TDictionary, TKey, TValue} instead.

RegisterIDictionary<T, U, V, W>()

Creates and registers a IPropertyBag<TContainer> for the specified IDictionary_2 type.
public static void RegisterIDictionary<TContainer, TDictionary, TKey, TValue>() where TDictionary : IDictionary<TKey, TValue>

Remarks

The container is required to provide AOT code paths for PropertyVisitor.