Expose ListView.listItemPrefabs for read-only access #313
ryan-at-melcher
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ListView (and by extension, GridView) have a prefab list field that is marked internal. This field, if exposed, would provide users the ability to query information about the source prefabs that make up the list.
My use case is a GridView with a dynamic cross axis item count. To know how many columns fit, I use the width of a prefab versus the width of the grid. It feels appropriate to obtain this information directly from the prefab. Currently, I can accomplish my goal by calling GetChild() on the view and referencing the size of the instantiated prefab (although I must check to ensure the list has children).
Is there anything I'm missing about exposing the prefab list for read only access?
Beta Was this translation helpful? Give feedback.
All reactions