Search Unity

  1. We've closed the job boards. If you're looking for work, or looking to hire check out Unity Connect. You can see more information here.
    Dismiss Notice
  2. We're running great holiday deals on subscriptions, swag and Asset Store packages! Take a peek at this blog for more information!
    Dismiss Notice
  3. Check out our Unite Austin 2017 YouTube playlist to catch up on what you missed. More videos coming soon.
    Dismiss Notice
  4. Unity 2017.2 is now released.
    Dismiss Notice
  5. The Unity Gear Store is here to help you look great at your next meetup, user group or conference. With all new Unity apparel, stickers and more!
    Dismiss Notice
  6. Introducing the Unity Essentials Packs! Find out more.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice
  8. Unity 2017.3 beta is now available for download.
    Dismiss Notice

Antares Universe : SceneView addons API

Discussion in 'Made With Unity' started by Neodrop, May 10, 2011.

  1. Neodrop

    Neodrop

    Joined:
    Oct 24, 2008
    Posts:
    1,357
    Available in Universe since 1.17

    $UniverseBigBar.jpg


    This is a simple demo of new Universe SceneView Addon API
    Even non-programmers now can create own action in Unity Editor with our easy and clear API (which contains only 4 variables and 6 methods in base class). This is fastest and handy way to extend your possibility in Unity Editor.

    Don't want to use our Universe as visual code editor? No problems. You can use it for free - for example just for creating a smart and convenient editor tools for your work and remove our Universe from project folder right before final build!
    Take it for FREE now!





    Antares Universe SceneView API contains just 4 variables and 6 methods, but you can use not all from it.
    The detailed description will be published after Universe 1.17 release.

    Here you can see a sample class from addon which can unparent all selected objects in one click.

    PHP:
    public class AntaresAddonToUniverse_Unparrent AddonWindow
        
    {
            public 
    override void Awake()
            {
                
    //The tab name where your addon will appear
                
    addonTabName "Transform";
                
    // addons button content
                
    buttonContent = new GUIContent("Unparent""Unparent selected object");
                
    // button width
                
    buttonWidth 80;
            }

            private 
    Transform transform;
            
    // Called before drawing the addon button. Can be used for deacticate addon button for example
            
    public override void OnPreDrawAddonButton()
            {
                
    transform Selection.activeTransform;
                
    GUI.enabled transform  transform.parent;
            }
            
            
    // Called when addon button is pressed in Addons Inspector floating window
            
    public override void OnAddonButtonPressed()
            {
                if (
    Selection.transforms == null || Selection.transforms.Length == 0)
                    return;
                
    Undo.RegisterSceneUndo(string.Format("Unparent {0} objects"Selection.transforms.Length));
                foreach (var 
    tr in Selection.transforms)
                {
                    
    tr.parent null;
                }
                
    // Just show notification. Optional.
                
    ShowNotificationWithUniverseLogo("Unparented");
            }
        }
     
    Last edited: Jul 25, 2011
  2. WolfoX

    WolfoX

    Guest

    What can I say... This is going very far from what I've been specting.
    Creating Editor tools never was so easy!
     
  3. Neodrop

    Neodrop

    Joined:
    Oct 24, 2008
    Posts:
    1,357
    Ability to creation simple addons with only nodes in progress.
    You will have a choice what way you want - visual node or ordinary code ;)
     
    Last edited: May 11, 2011
  4. holyjewsus

    holyjewsus

    Joined:
    Mar 7, 2011
    Posts:
    624
    woot
     
  5. jjnstn

    jjnstn

    Joined:
    Mar 26, 2008
    Posts:
    53
    Very nice. Thanks.
     
  6. Neodrop

    Neodrop

    Joined:
    Oct 24, 2008
    Posts:
    1,357
    Well, visual editor scripting are ready for your imagination and ideas!
    All public and internal Unity Editor classes are easy accessible by our Wizards.

    $VisualEditorScripting.jpg
     
    Last edited: May 12, 2011
  7. Neodrop

    Neodrop

    Joined:
    Oct 24, 2008
    Posts:
    1,357
    public class Unparrent_AntaresAddonToUniverse : AddonWindow
    {
    public override void Awake()
    {
    addonTabName = "Transform";
    buttonContent = new GUIContent("Unparent", "Unparent selected object");
    buttonWidth = 80;
    }

    private Transform transform;
    public override void OnPreDrawAddonButton()
    {
    transform = Selection.activeTransform;
    GUI.enabled = transform transform.parent;
    }

    public override void OnAddonButtonPressed()
    {
    if (Selection.transforms == null || Selection.transforms.Length == 0)
    return;
    Undo.RegisterSceneUndo(string.Format("Unparent {0} objects", Selection.transforms.Length));
    transform.DetachChildren();
    ShowNotificationWithUniverseLogo("Unparented");
    }
    }

     
  8. Neodrop

    Neodrop

    Joined:
    Oct 24, 2008
    Posts:
    1,357
    Here is a screenshot of the full-visual plugin. This addon will rename all selected objects :

    $AddonRenameSelected.png

    And looks like this in Unity :

    $RenameSelected.jpg
     
    Last edited: May 15, 2011
  9. Pulov

    Pulov

    Joined:
    Feb 20, 2010
    Posts:
    824
    Wow men! At first didnt got what this was for, I was doing a fast update of the showcase and did not got it...

    Now, understood what you have in there sounds pretty interesting.

    At this point something that really sucks from Unity to me is that it cant hide - show objets. Something I still cant understand in an app of this nature. Hope that with this app we can create all the little patches that this nice app needs.

    What I see harder to be implemented is that a photoshop show-hide icon like appears in the project tree so that I could show-hide certain groups of objets... anyway. I'll give a look to this during following weeks.
     
  10. Neodrop

    Neodrop

    Joined:
    Oct 24, 2008
    Posts:
    1,357
    New one Visual addon - add the Box or Mesh Colliders to any selected objects. (will be available in 1.19)

    $addColliders.jpg

    $AddCollidersToSelected.jpg
     
  11. Neodrop

    Neodrop

    Joined:
    Oct 24, 2008
    Posts:
    1,357
    New addon for GameObject group : "Batch it !"

    This addon will batch (using StaticBatchingUtility) all childs of the selected object in Runtime. Very handy for level creating and testing.

    And one more new addon in this group : "Find by tag"

    This addon finds all objects with specified tag and select it in Hierarchy.

    $addonFindByTag.jpg

    Both addons are created fully in the Universe visual editor. No one line of code.
    (Will be available in Universe 1.19)
     
    Last edited: May 27, 2011
  12. holyjewsus

    holyjewsus

    Joined:
    Mar 7, 2011
    Posts:
    624
    very useful, and nice scene btw.
     
  13. 3Duaun

    3Duaun

    Joined:
    Dec 29, 2009
    Posts:
    600
    definitely useful, thank you for adding these features
     
  14. Neodrop

    Neodrop

    Joined:
    Oct 24, 2008
    Posts:
    1,357
    New addon (will be available in Universe 1.19) : Select objects in Layer
    This addon provide ability to select all objects in the scene with the specified layer

    $SelectByLayer.jpg

    Created fully in Universe visual editor. No one line of code.
     
    Last edited: Jun 2, 2011
  15. Neodrop

    Neodrop

    Joined:
    Oct 24, 2008
    Posts:
    1,357
    This is the visual code of the new addone (Select in Layer) - just few nodes

    $Select_In_Layer.png
     
    Last edited: Jun 2, 2011
  16. holyjewsus

    holyjewsus

    Joined:
    Mar 7, 2011
    Posts:
    624
    wow, I actually followed that graph, using universe must be paying off!
     
  17. Neodrop

    Neodrop

    Joined:
    Oct 24, 2008
    Posts:
    1,357
    New video added in the first post.