Search Results for

    Show / Hide Table of Contents

    Class ObjectExtensions

    UnityEngine.Object Based Extension Methods

    Inheritance
    System.Object
    ObjectExtensions
    Namespace: GDX
    Syntax
    [VisualScriptingCompatible((short)2)]
    public static class ObjectExtensions

    Methods

    | Improve this Doc View Source

    SafeDestroy(Object, Single)

    Destroy a UnityEngine.Object appropriately based on the current state of the Editor/Player.

    Declaration
    public static void SafeDestroy(this Object targetObject, float delay = 0F)
    Parameters
    Type Name Description
    UnityEngine.Object targetObject

    The target UnityEngine.Object to be destroyed.

    System.Single delay

    How long should be waited before the targetObject is destroyed?

    • Improve this Doc
    • View Source
    In This Article
    Back to top Built on 2024-01-01 against 1f69a68.
    Generated by Dox+DocFX.