UIView & Lifecycle
UIView is the base class for every screen in the AchEngine UI system.
Lifecycle
Implement a view
Single-instance mode
Enable Single Instance on the catalog entry when repeated calls should reuse one view. Configure its layer in UIViewCatalog; do not override a layer property in the view subclass.
Object pool
Set Pool Size to at least 1 to return closed views to the pool instead of destroying them. Reset transient state in OnClosed().
Create a view prefab
Register the prefab in UIViewCatalog, then assign the catalog to UIRoot.
Useful components
UICloseButtoncloses the nearest parentUIView.UIOpenButtonopens a configured view ID.UISafeAreaFitteravoids notch/punch-hole areas.UIRootadds it automatically toScreen,Popup, andTooltip.UIBootstrapperopens configured views when a scene starts.
Transitions
Override OnBeforeOpen(object payload) and OnBeforeClose() to start custom animations. The configured UITransitionSettings controls when closing and pooling finish. Set Transition Mode to None for a fully custom animation.