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

Tag based scene optimizer

Discussion in 'Assets and Asset Store' started by nasos_333, Jun 24, 2014.

  1. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,838
    Hi everyone

    I am working on a Tag based scene optimizer and plan to release it for free on the asset store.

    In the current build i can disable all gameobjects away from the camera that use a certain tag. This has the advantage that any script running on the item will also be disabled and will free all resources associated with it.

    I use the system for particles and particle handlers mainly, but could be used for anything.

    What else would you like to see in such a system ?
     
  2. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    Though it may be slightly beyond the original design of what you did, it could be cool to handle this in a nested fashion too. Let us know when you have a version to play with.
     
  3. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,838
    I use tags because they are fast to keep track in the update. So only what is tagged will be disabled.

    When you say nested, you mean have an option to go up to a parent of the tagged object and disable it too for example ?
     
  4. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    Something to the effect of:
    TAGGROUP 1
    TAGGROUP OPTION1
    TAGGROUP OPTION2
    TAGGROUP 2
    TAGGROUP OPTION1
    TAGGROUP OPTION2
     
  5. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,838
    I see, that is interesting since searching in the already aquired objects is rather fast. Maybe though this complicates things, since the citeria to choose inside the subgroups are case dependent
     
  6. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    I dont know if that is the best way to describe it, but I was thinking in terms of like using tags like jQuery selectors.
     
  7. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,838
    Maybe an example would help :), or rather a description of the way objects should be disabled based on the tags
     
  8. JohnRossitter

    JohnRossitter

    Joined:
    Dec 18, 2013
    Posts:
    1,027
    I'll see if I can come up with something
     
  9. nasos_333

    nasos_333

    Joined:
    Feb 13, 2013
    Posts:
    12,838
    Ok, will be interesting to see