- edited description
More sophisticated CollectionRangeLookup
Right now, when the collection, which is datasource of CollectionRangeLookup change, the CollectionRangeLookup creates a new collection.
Real issue is, that i use combination of CollectionRangeLookup and GameObjectItemsSetter.
GameObjectItemsSetter has a provider CollectionRangeLookup which takes forst X from Collection.
public class GameObjectItemsSetter : ItemsSetter
{
protected override void ClearItems()
protected override void CreateItem(object itemContext, int itemIndex)
}
Problem is, that every time something change in the Collection, the CollectionRangeLookup creates a new Collection. New collection triggers ClearItems on CollectionRageLookup() and then multiple CreateItem calls within them the created gameobjects are instantiated and reset for a brief moment. That looks really bad.
Comments (4)
-
reporter -
repo owner - attached CollectionRangeLookup.cs
Okay, I had some time to work on the CollectionRangeLookup. As I don't use it currently in my projects, it would be great if you could test if it works for you and I will include it in the next version.
-
reporter Looks like it is working fine. thanks
-
repo owner - changed status to resolved
Great, I'll close the issue for now.
- Log in to comment