docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SceneExtensionsEditor

    Extension methods for Unity Editor concerning scene functionnalities

    Inheritance
    object
    SceneExtensionsEditor
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.PixyzPlugin4Unity.Extensions
    Assembly: Unity.Pixyz.Plugin4Unity.Editor.dll
    Syntax
    public static class SceneExtensionsEditor

    Methods

    Name Description
    DestroyImmediateSafe(GameObject, bool)

    Destroys GameObject, but ensure that it is properly unpacked if gameobject is part of a prefab (if editor)

    GetMeshData(IList<GameObject>)

    Collect all source data (Renderers, meshs, materials)

    GetMeshData(GameObject, out Renderer, out Mesh, out Material[])

    Collect all source data (Renderers, meshs, materials)

    Merge(IList<GameObject>)

    Merge all provided gameobjects

    MergeChildren(GameObject)

    Merge children (recursively) of given GameObject. If given GameObject has no mesh or renderer, this method will create it with the merged content inside.

    SetParentSafe(Transform, Transform, bool, bool)

    Change Tranform's parent, but ensures it is properly unpack if transform is part of a prefab (if editor)

    ShowNonPersistentDialog()

    Show a dialog box informing the user that volatile asset are linked to an object and asking if the user want to save them

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)