Class RuntimeUtility | Cinemachine | 2.4.0
docs.unity.cn
    Show / Hide Table of Contents

    Class RuntimeUtility

    An ad-hoc collection of helpers, used by Cinemachine or its editor tools in various places

    Inheritance
    Object
    RuntimeUtility
    Namespace: Cinemachine
    Syntax
    [DocumentationSorting(DocumentationSortingAttribute.Level.Undoc)]
    public static class RuntimeUtility

    Methods

    DestroyObject(UnityEngine.Object)

    Convenience to destroy an object, using the appropriate method depending on whether the game is playing

    Declaration
    public static void DestroyObject(UnityEngine.Object obj)
    Parameters
    Type Name Description
    UnityEngine.Object obj

    The object to destroy

    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX