We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

    Show / Hide Table of Contents

    Class UnityObjectExtensions

    Extension methods for Unity's Object class

    Inheritance
    Object
    UnityObjectExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit
    Assembly: cs.temp.dll.dll
    Syntax
    public static class UnityObjectExtensions

    Methods

    DontDestroyOnLoad(Object)

    Enable Unity objects to skip "DontDestroyOnLoad" when editor isn't playing so test runner passes.

    Declaration
    public static void DontDestroyOnLoad(this object target)
    Parameters
    Type Name Description
    Object target
    Back to top Generated by DocFX