Search Unity

How to init a new dummy Image object

Discussion in 'Immediate Mode GUI (IMGUI)' started by pankhard159, Feb 7, 2020.

  1. pankhard159

    pankhard159

    Joined:
    May 14, 2018
    Posts:
    13
    Hi,

    how can I create a new UI Image object without initiating it as normal gameobject? Because whole UI is dynamically generated and I don't have real reference on Image until I will make a few clicks to generate content. Which is not desired because on start I do deserialization of stored data and then I'm using non Monobehaviour object to store. Info about image and then I use it at generation of the UI content.

    Any ideas?
     
    dginovker likes this.