Class: DewPool
- Namespace:
Global - Assembly:
Dew.Core.dll
csharp
public static class DewPoolFields
| Name | Declaration | Description |
|---|---|---|
_clearAction | public static Dictionary<Type, Action<object>> _clearAction |
Methods
ClearEventsAndProcessors(Component)
csharp
public static void ClearEventsAndProcessors(Component obj)Parameters:
| Name | Type | Description |
|---|---|---|
obj | UnityEngine.Component |
GetArray<T>(out ArrayReturnHandle<T>, int)
csharp
public static T[] GetArray<T>(out ArrayReturnHandle<T> handle, int minSize = 128)Parameters:
| Name | Type | Description |
|---|---|---|
handle | ArrayReturnHandle<T> | |
minSize | int | |
| `` | T |
Returns: T[]
GetDictionary<TKey, TValue>(out DictionaryReturnHandle<TKey, TValue>)
Get an empty dictionary of TKey, TValue.You do not need to clear the dictionary before returning.
csharp
public static Dictionary<TKey, TValue> GetDictionary<TKey, TValue>(out DictionaryReturnHandle<TKey, TValue> handle)Parameters:
| Name | Type | Description |
|---|---|---|
handle | DictionaryReturnHandle<TKey, TValue> | |
| `` | TKey | |
| `` | TValue |
Returns: System.Collections.Generic.Dictionary<TKey, TValue><TKey, TValue>
GetList<T>(out ListReturnHandle<T>)
Get an empty list of T.You do not need to clear the list before returning.
csharp
public static List<T> GetList<T>(out ListReturnHandle<T> handle)Parameters:
| Name | Type | Description |
|---|---|---|
handle | ListReturnHandle<T> | |
| `` | T |
Returns: System.Collections.Generic.List<T><T>