Comments (3)
Yes this should be possible. However, I have noticed that sometimes lists with different sizes on different objects won't play nice, and spit out many errors due to the array size being too big. I'm going to try submitting a bug report if I can successfully reproduce it. From this doc: https://docs.unity3d.com/ScriptReference/SerializedProperty-arraySize.html it states that the "arraySize" is always the smallest of all selected objects. However, what I'm seeing is different. Sometimes the size is the smallest, other times its the largest.
After Unity released their C# editor source, you can see here: https://github.com/Unity-Technologies/UnityCsReference/blob/master/Editor/Mono/GUI/ReorderableList.cs That the property "count" manually discovers the smallest size array of the selected objects. This is something I'm not doing, and makes me think that the simple "arraySize" property is not correctly documented.
I'll be looking into this further, unfortunately very busy with work now.
I'll also think there needs to be better communication of different sized arrays on different objects. Something I need to think about
from unity-reorderable-list.
Thanks for your prompt answer! The problem I am seeing is that when selecting two elements with lists (small size, 4 or 5 elements, same amount of elements in each list) the list closes itself and there is a dash in the checkbox. If I try to open the list again (still with two elements or more) it just doesn't open and closes itself again.
from unity-reorderable-list.
Hi Mamarter, any chance you could show a screenshot or video of the problem?
When selecting multiple objects in Unity, any properties that differ between each object will be represented by a dash. This indicates the value is mixed.
I'm not sure what you mean by opening the list? Do you mean expanding and collapsing by pressing the arrow to the left of the list? If that's the case I can't reproduce here.
If you want to share your list code I can take a look
from unity-reorderable-list.
Related Issues (20)
- Screenshots
- Recursion HOT 1
- Unable to load the icon: 'MiniPopupNoBg'. HOT 1
- Adding element to list via code throws error when multiple objects with reorderable list are selected
- Nested list unity lag HOT 2
- Is there anyway to add names to each element in the draggable list.
- New elements added without correct default values. HOT 2
- Possible to use in an editor window? HOT 3
- DrawElementCallback foldout issue HOT 2
- Inner Array Attributes HOT 3
- Strange Property Size on First Layout
- Package fails to add on Unity 2019.3 HOT 1
- Version control HOT 2
- Paging based on certain features or callbacks
- Select Object Popup not working HOT 2
- Reorderable item force jump to the top HOT 1
- List of base class does not draw the inheritance attributes HOT 1
- Expose the List<T>.Enumerator struct or similar HOT 5
- asmdef conflicts with System.Collections.Generic
- ReorderableList.onChangedCallback did not dispatch, when drag finished. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unity-reorderable-list.