ViewPair Class
Structure linking View and a GameObject.
Public Properties
- view
View: The view component. - object
GameObject: The game object component.
Public Methods
new(view, object)
Creates a new instance of the ViewPair class.
Parameters:
viewView: The view component.objectGameObject: The game object component.
Returns:
ViewPair
cast(viewClass, objectClass)
Casts the view pair’s types.
Parameters:
viewClassTV:View: The view type.objectClassTO:GameObject: The object type.
Returns:
TV, TO: The casted view and object.