This is a simple demo of new UniverseSceneView 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.
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");
}
}
Well, visual editor scripting are ready for your imagination and ideas! All public and internal Unity Editor classes are easy accessible by our Wizards.
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.
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