Interface IAllocationStrategy
Allocation strategy for managing heap allocations
Namespace: UnityEngine.ResourceManagement.Util
Syntax
public interface IAllocationStrategy
Methods
New(Type, Int32)
Create a new object of type t.
Declaration
object New(Type type, int typeHash)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | The type to return. |
| Int32 | typeHash | The hash code of the type. |
Returns
| Type | Description |
|---|---|
| Object | The new object. |
Release(Int32, Object)
Release an object.
Declaration
void Release(int typeHash, object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | typeHash | The hash code of the type. |
| Object | obj | The object to release. |