unreal.MVVMViewModelCollectionObject¶
- class unreal.MVVMViewModelCollectionObject(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectMVVMView Model Collection Object
C++ Source:
Plugin: ModelViewViewModel
Module: ModelViewViewModel
File: MVVMViewModelCollection.h
- add_view_model_instance(context, view_model) bool¶
Add View Model Instance
- Parameters:
context (MVVMViewModelContext)
view_model (MVVMViewModelBase)
- Return type:
- find_first_view_model_instance_of_type(view_model_class) MVVMViewModelBase¶
Finds a View Model of the given type. If the collection contains multiple instances of the same type then this will return the first one found.
- Parameters:
- Return type:
- find_view_model_instance(context) MVVMViewModelBase¶
Find View Model Instance
- Parameters:
context (MVVMViewModelContext)
- Return type:
- remove_all_view_model_instance(view_model) int32¶
Remove All View Model Instance
- Parameters:
view_model (MVVMViewModelBase)
- Return type:
int32
- remove_view_model(context) bool¶
Remove View Model
- Parameters:
context (MVVMViewModelContext)
- Return type: