Giter Site home page Giter Site logo

neon-age / compact-unity-events Goto Github PK

View Code? Open in Web Editor NEW
77.0 4.0 3.0 26 KB

UnityEvents drawer with collapsing, reordering and compact UX

License: MIT License

C# 100.00%
unity unity3d events ux compact reordering reorderable list drawer custom collapse

compact-unity-events's Issues

Copy&Paste of events not possible anymore

CopyEvents
Hi, really cool asset, I like this a lot more than the normal space consuming view. But I miss the option to copy and paste event-listerns via right-click on the header.

Impossible to revert or apply prefab property overrides

This is a screenshot from a modified prefab instance. The event has been modified, then the modifications have been removed

However, as expected, the prefab override persist. It should be removable by doing right-click => reset, but no right click options appear

image

The blue marker for a prefab property override is hidden by the event box, with only one blue pixel visible

In the override list, the same issue persists:

image

This can be fixed in DrawListHeader

            // Header
            {
                // ReSharper disable once CoVariantArrayConversion
                string eventParams = (string)GetEventParams.Invoke(null, new[] { m_DummyEvent });
                string hex = EditorGUIUtility.isProSkin ? "#ffffff70" : "#00000070";
                guiContent.text = (string.IsNullOrEmpty(m_Text) ? "Event" : m_Text) + $"<color={hex}>{eventParams}</color>";

                EditorGUI.BeginProperty(foldoutRect, guiContent, property);
                property.isExpanded = EditorGUI.BeginFoldoutHeaderGroup(foldoutRect, property.isExpanded, guiContent, foldoutHeader);
                EditorGUI.EndFoldoutHeaderGroup();
                EditorGUI.EndProperty();
            }

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.