unreal.MVVMViewModelCollectionObject

class unreal.MVVMViewModelCollectionObject(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

MVVMView 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:
Return type:

bool

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:

view_model_class (type(Class)) –

Return type:

MVVMViewModelBase

find_view_model_instance(context) MVVMViewModelBase

Find View Model Instance

Parameters:

context (MVVMViewModelContext) –

Return type:

MVVMViewModelBase

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:

bool