Class ViewElementRequestedPool
Inheritance
System.Object
ViewElementRequestedPool
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: MacacaGames.ViewSystem
Assembly: Macaca.ViewSystem.dll
Syntax
public class ViewElementRequestedPool
Constructors
| Improve this Doc View SourceViewElementRequestedPool(ViewElement)
Declaration
public ViewElementRequestedPool(ViewElement template)
Parameters
Type | Name | Description |
---|---|---|
ViewElement | template |
ViewElementRequestedPool(ViewElement, Action<ViewElement>)
Declaration
public ViewElementRequestedPool(ViewElement template, Action<ViewElement> recoveryAction)
Parameters
Type | Name | Description |
---|---|---|
ViewElement | template | |
System.Action<ViewElement> | recoveryAction |
Fields
| Improve this Doc View SourcerecoveryAction
Declaration
public Action<ViewElement> recoveryAction
Field Value
Type | Description |
---|---|
System.Action<ViewElement> |
Methods
| Improve this Doc View SourceGetCurrentInUseViewElementCount()
Declaration
public int GetCurrentInUseViewElementCount()
Returns
Type | Description |
---|---|
System.Int32 |
GetPool(ViewElement)
Get the cached pool
Declaration
public static ViewElementRequestedPool GetPool(ViewElement template)
Parameters
Type | Name | Description |
---|---|---|
ViewElement | template | The source ViewElement |
Returns
Type | Description |
---|---|
ViewElementRequestedPool | the pool |
Recovery(ViewElement, Boolean)
Declaration
public void Recovery(ViewElement ve, bool ignoreTransition = true)
Parameters
Type | Name | Description |
---|---|---|
ViewElement | ve | |
System.Boolean | ignoreTransition |
RecoveryAll(Boolean)
Declaration
public void RecoveryAll(bool ignoreTransition = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | ignoreTransition |
RecoveryQueuedItems()
While call Recovery or RecoveryAll it's not really recovery, the system will move the element to a queue first and waiting for next system recovery cycle This API make system force recovery all queue element
Declaration
public void RecoveryQueuedItems()
Request(Transform)
Declaration
public ViewElement Request(Transform root)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | root |
Returns
Type | Description |
---|---|
ViewElement |
Request<T>(Transform)
Declaration
public T Request<T>(Transform root)
where T : Component
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | root |
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |