I’ll try to understand smth about SMeshWidget (clues):
- SMeshWidget consist of 2D meshes with materials and parameters, used for creating vector geometry images with texturing and transforming?
- Each mesh may have 1 UI Material?
- SMeshWidget also may transfer custom “user parameters” to UI Material, via 1 InstanceBuffer per Mesh?, which is basically an array of FVector4 values.
- If we want to use “user parameters” we have to extract it from InstanceBuffer inside of UI Material, using its functionality (material functions)?
- “User parameters” may be updated and packed (overrided) inside InstanceBuffer. For instance we may change position and rotation every OnPaint event and pack (write) it inside InstanceBuffer?
- We also may pack “User parameters” to textures used by UI Material? if InstanceBuffer is not enaugh.
- Each SMeshWidget may have multiple meshes (as layers?).
- Each mesh may be instanced, which means it may have many copies with different “user parameters” (for example color, position, rotation, scale…)?
I was just looking at MeshWidgetExample for 1 hour, so i am not exactly sure what i understand. I’ll try to figure out more later. Would be nice if someone correct (or admit) my clues.