Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How can gameobjects be compared in different projects?

Discussion in 'Editor & General Support' started by kjhuebner, May 29, 2023.

  1. kjhuebner


    Oct 2, 2018
    Within Unity editor, how can a first gameobject in a project be compared with a second gameobject in a different project?
    Both gameobjects are comprised of multiple child gameobjects.

    I want to know if any descendent gameobjects, components, and attributes have changed, and how have they changed.

  2. Kurt-Dekker


    Mar 16, 2013
    Make an editor script that digs into the hierarchy and writes out what it finds to a text file.

    For any particular component you would just use reflection to iterate all the public fields and print those too.

    We did one of these years ago when we made a Unity Editor Script to trans-compile an arbitrary UnityEngine.UI scene into a bunch of Javascript code to create the exact same layout when using a pure Javascript engine (

    It's just GetComponent<T>() and transform.childCount and a little sprinkle of recursion.

    It was just a few hours of chasing down StackOverflow "how to" articles, really.

    To understand recursion you must first understand recursion.

    EDIT: oh obviously, once you emit the text file from each project just run them through