Click or drag to resize

frame8.ScrollRectItemsAdapter.MultiplePrefabsExample Namespace

 
Classes
  ClassDescription
Public classMultiplePrefabsExample

Example implementation demonstrating the use of 2 different views holders, representing 2 different models into their own prefab, with a common Title property, displayed in a Text found on both prefabs.

The only constrain is for the models to have a common ancestor class and for the views holders to also have a common ancestor class

Also, the BidirectionalModel is used to demonstrate how the data can flow from the model to the views, but also from the views to the model (i.e. this model updates when the user changes the value of its corresponding slider)

At the core, everything's the same as in other example implementations, so if something's not clear, check them (SimpleTutorial is a good start)

Public classMultiplePrefabsExampleMyParams
Public classMultiplePrefabsExampleMyScrollRectAdapter
Public classMyParams
Public classRemoteImageBehaviour
Utility behavior to be attached to a GameObject containing a RawImage for loading remote images using SimpleImageDownloader, optionally displaying a specific image during loading and/or on error
Public classSliderItemBehaviour