Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How to make a UI Image display after a Gamecontroller calls on a scriptableObject?

Discussion in 'Scripting' started by WolfManDom, Aug 17, 2021.

  1. WolfManDom

    WolfManDom

    Joined:
    Jan 26, 2019
    Posts:
    3
    I have just finished the "Text Adventure Game" that was made a few years ago, and I wanted to build on it. I am wanting to make it so when the "GameController" calls on each of the Scriptable rooms, it will also display the room's UI image (a custom image of the room). So, the question is how can I go about doing this most effectively and easily.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,971
    Start by getting familiar with Unity UI. Nobody here is going to longhandedly type out everything involved in this, so start with a good half dozen or so Unity.UI tutorials. Fortunately there are thousands of good tutorials on this extremely-well-travelled area of Unity, so you will have no shortage of good examples to start from, including the basic ones that Unity provides.
     
  3. WolfManDom

    WolfManDom

    Joined:
    Jan 26, 2019
    Posts:
    3
    I am not wanting someone to write everything I need to do. I am just wanting to know what I need to involve in it; I am fairly new to how to script and use unity in general. I just want to be able to do this one thing, and all the tutorials are not making it easier to understand what I need to do for my game. I don't want to have too many scripts that don't work to gather well enough to make it all work. With that said, that you anyways for your help.
     
  4. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,971
    To do what you suggest,

    I would say you need to know how the UI system works.

    If you can get it going without that, well, more power to you, come back and show us all how we've been wasting our time learning the UI system all this time.