Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


VisitCollection<TContainer, TCollection, TElement>(Property<TContainer, TCollection>, ref TContainer, ref TCollection)

Called when visiting any non-specialized collection property.
Read time 1 minuteLast updated 10 days ago

Definition

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

VisitCollection<T, U, V>(Property<T, T>, T, T)

protected virtual void VisitCollection<TContainer, TCollection, TElement>(Property<TContainer, TCollection> property, ref TContainer container, ref TCollection value) where TCollection : ICollection<TElement>

Parameters

The property providing access to the collection.

container

T
The container being visited.

value

T
The collection being visited.

Remarks

When visiting a specialized collection the appropriate method will be called.