Code Monkey home page Code Monkey logo

reorderableinspector's People

Contributors

chemikhazi avatar galman33 avatar jeiel-bunnyhug avatar mwegner avatar naphier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reorderableinspector's Issues

Other fields become readonly

Hello,

Nice library. It seems to work fine on most cases but I encounter an issue making all the other fields readonly:
image

When I remove the reoderable attribute the fields become enabled:
image

My class is a scriptable object:

    [Serializable]
    public class SpellNode : ScriptableObject
    {
        [Reorderable]
        [SerializeField]
        protected List<SpellSlotType> m_slotDefinition = null;

        [Header("General")]
        [SerializeField]
        protected string m_guid = string.Empty;

        [SerializeField]
        protected Sprite m_icon = null;

        [SerializeField]
        protected string m_name = string.Empty;

        [SerializeField]
        [TextArea]
        protected string m_rawDescription = string.Empty;

I tried uncommenting this, but it has no effect
#define EDIT_ALL_SCRIPTABLES

Thanks!

Conflict with Unity2019.2

It works well in Unity5.x version.

But if you import this package into an empty project of Unity2019 version,an error will popup when you click the Layout button in the upper right corner:

"Menu Window/Layouts couldn't be found"

[Reorderable] not working from GridBrushEditor [Unity 2018]

hi.
thanks for this excellent project
i am having some trouble getting it to work from GridBrushEditor

  • i cannot (i think) derive from ReorderableArrayInspector because i need to derive from GridBrushEditor
  • i do not even override the OnInspectorGUI in my editor i thought that might make it work but no?

Custom inspectors will not automatically draw arrays as ReorderableLists unless they inherit from ReorderableArrayInspector.

  • but should it still work with [Reorderable]? but no? does not
  • not sure from that quote if reorderable should still work cuz it not auto so i guess it should

i made this simple test project.
in the real project i have more code in GridBrushEditor
https://github.com/rakkarage/TestReorderableInspector

any way to get working?
thanks

UnityEvent single line

Awesome plugin! I just wanted to report that this setting looks weird in the inspector:

[Serializable]
public struct KeyAction
{
    public KeyCode keyCode;
    public UnityEvent action;
}

[Reorderable("Element", true, true)]
public List<KeyAction> Mapping;

No changes in inspector, Unity 5.6.3p2

No changes to the default inspector are made when using the [Reorderable] and [EditScriptable] attributes in Unity 5.6.3p2. No compiler errors are given, but the default arrays are drawn and inline editing of Scriptable objects are not enabled.

screen shot 2017-12-02 at 9 36 05 am

screen shot 2017-12-02 at 9 36 16 am

NullReferenceException

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_helpBox () (at <c84609c921cb488481d7d8a5fcdf9588>:0)
SubjectNerd.Utilities.ReorderableArrayInspector.InitInspector () (at Assets/Scripts/Plugins/Utilities/Reorderable/Editor/ReorderableArrayInspector.cs:323)
SubjectNerd.Utilities.ReorderableArrayInspector.OnEnable () (at Assets/Scripts/Plugins/Utilities/Reorderable/Editor/ReorderableArrayInspector.cs:308)

Cannot derive from ReorderableArrayInspector

I must already derive from GridBrushEditor (tho i not use any GUI) so I cannot derive from ReorderableArrayInspector!?
Why does my CustomPropertyDrawer work in this situation but not Reorderable?
Is there any way to make it work?
I need to make a custom drawer or a ReorderableArrayInspector
Thanks.

https://en.wikipedia.org/wiki/Composition_over_inheritance

edit:

Custom inspectors will not automatically draw arrays as ReorderableLists unless they inherit from ReorderableArrayInspector.

If not auto then how please? tried [Reorderable]...

Add Assembly Definition Files

So that people won’t have to muck around within the package, add assembly definition files. One that should only be linked to in the Editor, another for all platforms.

Custom serializable class array not displayed properly

When you set the attribute "Reorderable"to a custom class array or list, it is displayed as a Reorderable list, but when you expand an element the list size does not expand, and the expanded element fields are displayed on top of other elements
Unity 2018.2.0f2

is obsolete error when running 2019.2

Hi

When trying to run a project with ReorderableInspector added, I get the following error;

Assets\ReorderableInspector\Editor\ReorderableArrayInspector.cs(185,21): error CS0619: 'EventType.dragUpdated' is obsolete: 'Use DragUpdated instead (UnityUpgradable) -> DragUpdated'

Unity 2019.2.13.f1

Olly

Dead link on wiki page for Custom Inspectors

http://va.lent.in/unity-make-your-lists-functional-with-reorderablelist/
Appears to be dead ☹️
at
https://github.com/SubjectNerd-Unity/ReorderableInspector/wiki/Custom-Inspectors#extending-reorderablelist-functionality

Would love to see more about the callbacks.
Actually I'm just looking for a way to set the element's name easily (not all the elements the same name).
If you use a serializable class not inheriting from MonoBehaviour then a string name field will show as the element name, but when using a MonoBehaviour subclass name does not show (even if you override with the new operator).

Thanks!

Context Buttons are gone after Recompile

  1. have a script selected in the Inspector that has an [Reorderable] Attribute on a field
  2. do any change in any script, causing Unity to recompile

Expected: Context Menu buttons are still there
Actual: Context Menu buttons disappear. They appear again when the object is deselected and then selected again.

[Reorderable] for EditorWindow?

Just curious if this is supported, and I'm asking as it is technically a different purview from the Editor subclass you have created.

NullReferenceException: Object reference not set to an instance of an object UnityEditor.EditorStyles.get_helpBox ()

Upon recompilation of scripts, an error consistently pops up

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorStyles.get_helpBox () (at C:/buildslave/unity/build/Editor/Mono/GUI/EditorStyles.cs:195)
SubjectNerd.Utilities.ReorderableArrayInspector.InitInspector () (at Assets/ThirdParty/SubjectNerd/ReorderableInspector/Editor/ReorderableArrayInspector.cs:326)
SubjectNerd.Utilities.ReorderableArrayInspector.OnEnable () (at Assets/ThirdParty/SubjectNerd/ReorderableInspector/Editor/ReorderableArrayInspector.cs:311)

This is the line throwing the null ref error:

styleEditBox = new GUIStyle(EditorStyles.helpBox) { padding = new RectOffset(5, 5, 5, 5) };

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.