Interface IAllocationStrategy | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

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

    The type to return.

    System.Int32 typeHash

    The hash code of the type.

    Returns
    Type Description
    System.Object

    The new object.

    Release(Int32, Object)

    Release an object.

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

    The object to release.

    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX