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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[Released] Easy Editor, Enhance your inspector interface

Discussion in 'Assets and Asset Store' started by tgouala-wellfiredLtd, Oct 28, 2015.

  1. tgouala-wellfiredLtd

    tgouala-wellfiredLtd

    Joined:
    Jun 8, 2013
    Posts:
    99
    Guys,

    I just saw all the messages on the forum and I am so confused because my mail box stops receiving forum notification for no reason. And this is not the first time it happens. I will have a look to all your question the coming week. I am so sorry for that.

    Thanks all for all the feedback and the suggestion, I will come back to it one by one.
     
  2. tgouala-wellfiredLtd

    tgouala-wellfiredLtd

    Joined:
    Jun 8, 2013
    Posts:
    99
    Hi Duffer,

    A Easy Editor user sent me a script that seems very close to what you are describing. I will integrate it and make a new release soon.

    For AnimationCurve, you can simply add a unity CurveAnimation field in your script and Unity will render it nicely even in Easy Editor scripts. You then just need to clip on it to display the curve editor.

    For AudioClip this is a nice idea. I will have a look if time allows. If you find anywhere else an implementation to render such a thing with a license that allows me to use it, you can always send it to me, I will integrate it in EE. Same for Mesh.

    Cheers !
     
  3. tgouala-wellfiredLtd

    tgouala-wellfiredLtd

    Joined:
    Jun 8, 2013
    Posts:
    99
    It's weird, a another user also mentioned that. I uploaded this version of Unity and tried it with EE, I could not see any problem. Maybe you need to delete the package and reinstall it ?
     
  4. tgouala-wellfiredLtd

    tgouala-wellfiredLtd

    Joined:
    Jun 8, 2013
    Posts:
    99
    For comment, I will add it to roadmap. I hope that time will allows me to implement it quickly.
    For tooltips, I will also have a look as soon as possible. It should be possible.
     
  5. tgouala-wellfiredLtd

    tgouala-wellfiredLtd

    Joined:
    Jun 8, 2013
    Posts:
    99
    1. You can modify it in UICreatorContext.cs by modifying "path" in CustomizeInterface function.

    2. If your list is rendering Custom Class, Element 1 will be replaced by the first string field found in your Custom Class. For example :

    Code (CSharp):
    1.  
    2. [Serializable]
    3. public class Field
    4. {
    5.      public string id;
    6.      public int power
    7. }
    will show the id content instead of Element 1

    3. Thanks ! Actually if unity was supporting layout UI rendering in property drawers, I could easily do it. It may come in the future. Currently you can add [Selectable] on top of a list and click on the element to display it with Easy Editor. This is almost as handy ;) You can see a sample in Examples/SelectableList.
     
  6. tgouala-wellfiredLtd

    tgouala-wellfiredLtd

    Joined:
    Jun 8, 2013
    Posts:
    99
    Sorry, I am not very clear with what you mean. Could you share an example ?
    Yes, the website is missing 2 features [Selectable] that can be placed on top of list, and list event. Unfortunately, updating sample directly in the plugin is faster than updating the website. Will do it as soon as possible. I strongly recommend to go over every sample (EasyEditor/Examples).

    Thanks for pointing this to me.
     
  7. Duffer123

    Duffer123

    Joined:
    May 24, 2015
    Posts:
    1,215
    Good stuff
     
  8. Cleverlie

    Cleverlie

    Joined:
    Dec 23, 2013
    Posts:
    219
    Hi @zhoufei I'm using EasyEditor 2.20 on Unity 5.6.0f3

    groupings doesn't seem to be working, I did the "right click -> customize interface" thing to generate the editor script, then lists are shown pretty in my inspector, what I wanted now is to be able to fold / unfold lists as in the unity default rendered lists, as I'm not finding a way to achieve that, I wanted to put the list in a foldable group, this doesn´t work:


    [Inspector(group = "Building Prefabs", foldable = true)]
    public Building[] pref;

    no changes are visible in the inspector, not a group header or whatever, but the docs show that this should work, maybe a compatibility problem with unity 5.6?
     
  9. ThibaultGouala

    ThibaultGouala

    Joined:
    May 30, 2016
    Posts:
    12
    Hi Cleverlie,

    To create a group you also need to specify it in the editor script generated. You just need to write Building Prefabs in the quote automatically generated. Please have a look to :
    http://easy-editor.info/documentation.php#GroupsAndOrder

    And let me know if it still does not work.
     
  10. ThibaultGouala

    ThibaultGouala

    Joined:
    May 30, 2016
    Posts:
    12
    Hi Doougles,

    Actually for comment the feature already exists. You can open Settings script and specify how you want it to be displayed. Please see this part of the documentation : http://easy-editor.info/documentation.php#CustomisingDefaultBehaviour

    Any problem, let me know and sorry for having missed it :(.
     
  11. Cleverlie

    Cleverlie

    Joined:
    Dec 23, 2013
    Posts:
    219
    Hi, yes that pretty much solved the problem, thanks, I still wonder if there is any way to make lists foldable, that would be a good addition, default rendering of lists in unity makes them foldable, it would be good if that behaviour is kept with the fancy easy editor lists, cheers
     
  12. vabd920

    vabd920

    Joined:
    Oct 31, 2015
    Posts:
    15
    When will InlineClass be supported inside the lists and arrays?
     
  13. vabd920

    vabd920

    Joined:
    Oct 31, 2015
    Posts:
    15
    Is there a way to use an attribute in the abstract class?
     
  14. tgouala-wellfiredLtd

    tgouala-wellfiredLtd

    Joined:
    Jun 8, 2013
    Posts:
    99
    Hi vabd920, Inline class will not be supported for the moment.
    Did you try on an abstract class ? It did not work ? Does the class inherit from Monobehaviour or Scriptable object ? Or is it a Serializable struc or class ?
     
  15. Korindian

    Korindian

    Joined:
    Jun 25, 2013
    Posts:
    584
    Hi there, I just changed my scripting backend to .NET 4.6 with the new Unity 2017.1. There are a few warnings I'm hoping you can address in the next release:

    Assets/EasyEditor/Implementation/Engine/Attributes/PopupAttribute.cs(96,26): warning CS0252: Possible unintended reference comparison. Consider casting the left side expression to type `System.Type' to get value comparison

    Assets/EasyEditor/Implementation/Editor/UIRendering/PropertyDrawer/PopupDrawer.cs(22,32): warning CS0252: Possible unintended reference comparison. Consider casting the left side expression to type `System.Type' to get value comparison

    Assets/EasyEditor/Implementation/Editor/UIRendering/PropertyDrawer/PopupDrawer.cs(44,37): warning CS0252: Possible unintended reference comparison. Consider casting the left side expression to type `System.Type' to get value comparison

    Assets/EasyEditor/Implementation/Editor/UIRendering/PropertyDrawer/PopupDrawer.cs(64,37): warning CS0252: Possible unintended reference comparison. Consider casting the left side expression to type `System.Type' to get value comparison

    Thanks!
     
  16. tgouala-wellfiredLtd

    tgouala-wellfiredLtd

    Joined:
    Jun 8, 2013
    Posts:
    99
    Will do !
     
    Korindian likes this.
  17. Cleverlie

    Cleverlie

    Joined:
    Dec 23, 2013
    Posts:
    219
    hi @zhoufei

    what are your plans on mantaining this asset? your last activity here is from july 14 and the asset store still has last update in january.

    I wanted to report a bug, the [Path] attribute is not working in unity 2017.2p4, didn't tested in other versions.
    when I drag an asset into the serialized string field nothing happens, are you planning on adding new features or fixing the current broken ones for the newests unity versions? cheers
     
  18. DerrickBarra

    DerrickBarra

    Joined:
    Nov 19, 2013
    Posts:
    210
    Hey @zhoufei,

    In Unity 2018.2.0b1 using Easy Editor 2.20 there is a bug that makes Easy Editor unusable. The error below is repeatedly spat out by the editor when you use a Serialized List. I'm guessing your no longer mantaining this asset, if that's the case I would recommend letting Unity know so that people don't buy EE accidentally.

    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object
    2. EasyEditor.ReorderableList.ReorderableListControl.PrepareState (Int32 controlID, IReorderableListAdaptor adaptor) (at Assets/EasyEditor/Implementation/Tools/ReorderableList/Editor/ReorderableListControl.cs:567)
    3. EasyEditor.ReorderableList.ReorderableListControl.Draw (Int32 controlID, IReorderableListAdaptor adaptor, EasyEditor.ReorderableList.DrawEmpty drawEmpty) (at Assets/EasyEditor/Implementation/Tools/ReorderableList/Editor/ReorderableListControl.cs:1345)
    4. EasyEditor.ReorderableList.ReorderableListControl.Draw (IReorderableListAdaptor adaptor) (at Assets/EasyEditor/Implementation/Tools/ReorderableList/Editor/ReorderableListControl.cs:1367)
    5. EasyEditor.ReorderableListRenderer.Render (System.Action preRender) (at Assets/EasyEditor/Implementation/Editor/UIRendering/InspectorItemRenderers/UIElement/FieldRenderers/ReorderableListRenderer.cs:165)
    6. EasyEditor.FullObjectDecoratedRenderer.Render (Boolean currentLayoutIsHorizontal) (at Assets/EasyEditor/Implementation/Editor/UIRendering/InspectorItemRenderers/UIElement/FullObjectRenderers/Utils/FullObjectDecoratedRenderer.cs:76)
    7. EasyEditor.FullObjectRenderer.Render (System.Action preRender) (at Assets/EasyEditor/Implementation/Editor/UIRendering/InspectorItemRenderers/UIElement/FullObjectRenderers/BaseClass/FullObjectRenderer.cs:185)
    8. EasyEditor.ScriptObjectRenderer.Render (System.Action preRender) (at Assets/EasyEditor/Implementation/Editor/UIRendering/InspectorItemRenderers/UIElement/FullObjectRenderers/ScriptObjectRenderer.cs:74)
    9. EasyEditor.EasyEditorBase.OnInspectorGUI () (at Assets/EasyEditor/Implementation/Editor/UIRendering/InterfaceDrawer/EasyEditorBase.cs:77)
    10. UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1374)
    11. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    12.  
     
    NeatWolf likes this.
  19. Deleted User

    Deleted User

    Guest

    @DerrickBarra - I'm getting the same (or similar) errors. If I had time I'd dig around and sort out the problem myself but that's sort of the draw of EasyEditor: it's for people who area already short on time.
     
    NeatWolf likes this.
  20. DerrickBarra

    DerrickBarra

    Joined:
    Nov 19, 2013
    Posts:
    210
    I ended up switching my project over to Odin Inspector (which works well, but has it's own caveats and glitches to learn/work around). The most time consuming change was going from strings to enums for enhanced list support in Odin from a previous EasyEditor project. And in Odin their OnValueChanged function calling system has some of the same bugs EasyEditor did (where the scene/game view was always an update behind), so it's nice to know that's basically the same.

    Overall try them out, see if you like it for your next project.
     
  21. NeatWolf

    NeatWolf

    Joined:
    Sep 27, 2013
    Posts:
    924
    Hi there!

    I'm also worried about this prolonged silence.
    I have to make a decision for my team to purchase multiple copies of Easy Editor vs Odin Inspector.

    EE (which I only discovered recently) looks like as more lightweight and doesn't seem to rely on attributes only (not sure if you can "bake" a class to have a custom editor). Yet, Odin is getting continued support even if it costs about 3 times more (but also has the serialization features which could be handy).

    Are you going to update the asset anytime soon in the near feature, or it's simply left "as is" as the roadmap is currently empty?

    BTW: in Unity 2018.1.3f1 I'm getting a:
    Assets/EasyEditor/Implementation/Editor/UIRendering/PropertyDrawer/EnumFlagDrawer.cs(42,38): warning CS0618: `UnityEditor.EditorGUI.EnumMaskField(UnityEngine.Rect, UnityEngine.GUIContent, System.Enum)' is obsolete: `EnumMaskField has been deprecated. Use EnumFlagsField instead.'


    I usually fix those warnings by myself but, I'd really really prefer to avoid touching the core code of an asset if not strictly necessary.

    Are you working on an update already? :)
     
  22. ThibaultGouala

    ThibaultGouala

    Joined:
    May 30, 2016
    Posts:
    12
    Hi Cleverlie,

    So sorry for this long silence. I actually don't plan to add new feature to Easy Editor. As @NeatWolf mentioned, Easy Editor is very lightweight and will stay like this. So the price will not increase and features will stay the same.

    However, as long as effort to maintained it stay reasonable (i.e. as long as Unity does not revamp the whole editor API), I will keep maintaining it. If I stop maintaining it, I will deprecate it on the Asset Store.

    Concerning the bug you mention, I tested in Unity 2017.3 and it works perfectly. Could you try to open the example scene "PropertyDrawer", select the game object "Potion bag" and drag an asset on the field "Asset Path" in the inspector ?

    Thanks a lot
     
    Last edited: Jul 10, 2018
  23. ThibaultGouala

    ThibaultGouala

    Joined:
    May 30, 2016
    Posts:
    12
    Hi @DerrickBarra,

    This error happens in a beta version of Unity, and unfortunately I cannot confirm Easy Editor works on beta version. I had this situation with one of the beta version of Unity 2017. It ended up that it was fixed by Unity in the final version. If this happens in a final version of Unity, I will have a look immediately.
     
  24. ThibaultGouala

    ThibaultGouala

    Joined:
    May 30, 2016
    Posts:
    12
    Hi Derrick,

    Indeed, Odin gives you way more possibilities than Easy Editor. But learning curve is slower and maintaining it is way harder than maintaining Easy Editor. So choosing between the two tools really depends on the number of features you need, the size of your team and how long you need to keep your game updated against the latest version of Unity.

    Easy Editor is a tool that could be easily maintained by one person (since source code is provided). Odin also provide source code but if you are worrying about having to dig into Odin source code in the future to fix issues yourself, better to plan the resources for it.

    Also, @NeatWolf , the serializer of Odin inspector has been released as an open source tool if you are interested : https://github.com/TeamSirenix/odin-serializer
     
    NeatWolf likes this.
  25. ThibaultGouala

    ThibaultGouala

    Joined:
    May 30, 2016
    Posts:
    12
    Hi @Korindian ,

    I fixed the warning when you switch to .NET 4.6.

    The version will be on the asset store in a matter of days. Contact me on the mail support with your invoice and I will send the new version to you directly (egnare.studio@gmail.com)
     
  26. Korindian

    Korindian

    Joined:
    Jun 25, 2013
    Posts:
    584
    Thanks Thibault! I also revised my review from a few years ago to reflect this update. I'm currently not using EE but it's good to know it's now updated and without warnings.
     
    ThibaultGouala likes this.
  27. ThibaultGouala

    ThibaultGouala

    Joined:
    May 30, 2016
    Posts:
    12
    + @EddieOffermannFB

    This error occurs in the official version of Unity. I will have a look and fix it as soon as possible. Note that it may take up to two weeks as I am not home for the moment. But I will fix it as soon as possible.
     
    Last edited: Jul 12, 2018
  28. NeatWolf

    NeatWolf

    Joined:
    Sep 27, 2013
    Posts:
    924
    Thanks for updating the Asset, I really appreciated that! :)

    I still haven't tested it on 2018.2 yet, fingers crossed :)
     
    ThibaultGouala likes this.
  29. ThibaultGouala

    ThibaultGouala

    Joined:
    May 30, 2016
    Posts:
    12
    Hi @EddieOffermannFB , @NeatWolf , @DerrickBarra ,

    The problem on Unity 2018.2 is fixed and will be available in version 2.24.1 on the asset store in few days. Don't hesitate to contact me by mail if you meet any problem. Messages I get on the forum does not always reach my mail box. Here the support mail : egnare.studio@gmail.com
     
    NeatWolf likes this.