If I click the NonDiegeticUIOutput in the inspector it shows a "DaggerfallUI RenderTexture 0" as the RawImage texture. It's been disabled when my scripts inject (as per the pre-requisite) and it shows the HUD overlay image.
Another interesting thing, when I resize the panels in the inspector there are a bunch of new UI RenderTextures created. For example, here's one:
Code: Select all
Created UI RenderTexture with dimensions 1654, 445
UnityEngine.Debug:LogFormat(String, Object[])
DaggerfallWorkshop.Game.UserInterface.UserInterfaceRenderTarget:CheckTargetTexture() (at Assets/Scripts/Game/UserInterface/UserInterfaceRenderTarget.cs:219)
DaggerfallWorkshop.Game.UserInterface.UserInterfaceRenderTarget:Update() (at Assets/Scripts/Game/UserInterface/UserInterfaceRenderTarget.cs:118)
So the flow is something like:
* Create a HUDCompass
* Add it as a component in ParentPanel.Components
Does the ui (the UserInterfaceRenderTarget component in this GameObject) then look for a RawImage component and sets its RawImage to be whatever the last texture created was?