Class DefaultAllocationStrategy | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Class DefaultAllocationStrategy

    Default allocator that relies in garbace collection

    Inheritance
    System.Object
    DefaultAllocationStrategy
    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
    System.Type type

    The type to return.

    System.Int32 typeHash

    The hash code of the type.

    Returns
    Type Description
    System.Object

    The new object.

    Implements
    IAllocationStrategy.New(Type, Int32)

    Release(Int32, Object)

    Release an object.

    Declaration
    public void Release(int typeHash, object obj)
    Parameters
    Type Name Description
    System.Int32 typeHash
    System.Object obj

    The object to release.

    Implements
    IAllocationStrategy.Release(Int32, Object)
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX