Hey there.
I'm crafting my game menus and another issue has struck me.
I have only the group leader in the field, but in menu I need to show the character models of group and non group members.
I tried doing It as usual, creating a camera inside the character prefab that outputs into a render texture, and setting this render texture to an avatar type (Full mody model).
The issue is that the field leader profile is rendered, but other characters don't.
OFC after 5 minutes I realized that since they are not instantiated there was no cameras to render the texture.
Is there anyway to setup this?
The default prefab view settings can be found in UI > UI Settings > ORK UI Settings > Prefab View Settings. You can define the camera (prefab) and render texture stuff here.
To use a prefab view portrait to a combatant, add a regular portrait and enable Use Prefab View in it. It'll use the prefab of the combatant but can optionally also use a defined prefab.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I just got it working! I fumbled along until I discovered the offset (prefabs were spawning on top of each other), and now works like a charm!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
However, you might want to change some settings on it, e.g. having a fully transparent background color or only rendering specific layers (via the culling mask).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Any idea on where I'm missing something?
UI settings
Prefab Settings
Hud Settings
Result
The prefab view works with a camera putting what it sees into a render texture, which is displayed by your UI.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
I saw in another thread the portrait content had to have a RawImage type, so i've added that as well to the HUD.
I note that while the game is running, the portrait content is grayed out, like it's disabled?