Class DefaultAllocationStrategy
Default allocator that relies in garbace collection
Inherited Members
Namespace: UnityEngine.ResourceManagement.Util
Syntax
public class DefaultAllocationStrategy : IAllocationStrategy
Methods
New(Type, Int32)
Create a new object of type t.
Declaration
public 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. |
Implements
Release(Int32, Object)
Release an object.
Declaration
public void Release(int typeHash, object obj)
Parameters
Type | Name | Description |
---|---|---|
Int32 | typeHash | The hash code of the type. |
Object | obj | The object to release. |