<scene name="SceneBase"> <item lookAt="10, 10, 10, 0, 0, 0"> <Camera ref="camera" /> </item> <item ref="eth" prefab="prefabs/EthPrefab" /> <item lookAt="5, 5, 5, 0, 0, 0" > <Camera fov="0.436332" /> <CameraTexture ref="camTexture" /> </item> <item> <UICanvas ref="canvas" /> <item ref="textbox" prefab="prefabs/VNTextbox" /> <item> <UIImage alignment="0, 0, 50, 0" alignX="UI_COMPONENT_ALIGN_START" alignUnitRight="UI_COMPONENT_ALIGN_UNIT_PERCENT" alignY="UI_COMPONENT_ALIGN_STRETCH" ref="image" texture="camTexture->renderTarget.getTexture()" /> </item> </item> <code type="init"> useEvent([&]{ assertNotNull(camTexture); assertNotNull(image); camTexture->renderTarget.setSize(image->getWidth(), image->getHeight()); }, image->eventAlignmentUpdated); </code> </scene>