GithubHelp home page GithubHelp logo

phobos2077 / unity-hierarchy-folders Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xsduan/unity-hierarchy-folders

0.0 1.0 0.0 42 KB

Specialized folder objects for Unity Hierarchy.

License: MIT License

C# 100.00%

unity-hierarchy-folders's Introduction

Folders for Unity Hierarchy

Specialized folder objects for Unity Hierarchy.

Installation

This uses the new UPM system introduced in 2017.2 (and something something 2018.1?). The old copy-into-Assets method still works perfectly decent so if you don't want to bother with UPM just copy the Editor and Runtime folders into your project.

In any case, simply add a relative link to this folder in your manifest.json and hopefully this will show up, e.g.:

{
  "dependencies": {
    "com.unity.package-manager-ui": "1.9.11",
    "com.xsduan.heirarchy-folders": "file:../../unity-hierarchy-folders"
  }
}

(2018.3.0b7 and above can also use git links as well.)

A "Create Folder" menu item should show up in the GameObject menu. Add Tests/Example.unity to your current scene for an example of what hierarchy folders can do for you.

The UPM does not have much documentation at the moment so it probably will be buggy, you're not going crazy!

Possible FAQs

Why folders in the first place?

As projects get bigger, they tend to get cluttered in the scene. It's very helpful if you can group them together into logical groups.

Why delete them on build then?

Because they are best used for level designers to declutter the hierarchy, but calculating the global transform from the local during runtime can take a noticeable impact on performance once scenes get to 1000, 10000, or more objects.

So why can't I just use empty GameObjects and delete them on build?

Sometimes empty GameObjects are used for other things and it's useful to have a specific type of object that should always be deleted on build.

Besides, I did all the legwork, so you wouldn't have to!

There's another product/widget that exists that does this exact task.

So there are. This isn't exactly a unique concept and I only made it for future personal use and shared it only to possibly to help other people because I couldn't find it on Google.

In fact, there's probably like 50 versions of this floating around that I can't google-fu my way through. I personally have seen one on the Asset Store myself, but it was $0.99/seat and as you can tell it took me maybe 3 hours to set up their entire product plus auto pruning so it's clearly not worth paying jack for.

If you are the owner of one such product, please contact me and we can work something out.

unity-hierarchy-folders's People

Contributors

xsduan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.