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. Dismiss Notice

Question I need to get the editor to recognize where the screen's edges are.

Discussion in 'Editor & General Support' started by Brian-Washechek, Feb 1, 2023.

  1. Brian-Washechek

    Brian-Washechek

    Joined:
    Aug 5, 2015
    Posts:
    846
    I messed up on this project. I could go back and fix it, but I think it would be good to learn the editor this time.
    Help request on 1-31-2023png.png turns into
    Help request on 1-31-2023 - 2.png Without the text tool that says "scrnPoint". That's what I'm trying to get rid of.
     
  2. BABIA_GameStudio

    BABIA_GameStudio

    Joined:
    Mar 31, 2020
    Posts:
    488
    Could you explain your problem in some more detail? I don't understand what you mean about one set of code "turns into" another set of code.

    All I can see is that in your first screenshot you have defined your variable as
    screnPoint
    and then try to use it in the last line as
    screenPoint
    , which is why it is an error.

    But I don't understand what you are saying is wrong with the code in the second screenshot.

    A better explanation of your problem will probably enable everyone a better chance of helping you out.
     
    PraetorBlue likes this.
  3. Brian-Washechek

    Brian-Washechek

    Joined:
    Aug 5, 2015
    Posts:
    846
    I am pretty sure that I just needed to change the capitalization of "scrnPoint". I will get back to you after I change that and check it out. Thanks though.
     
  4. BABIA_GameStudio

    BABIA_GameStudio

    Joined:
    Mar 31, 2020
    Posts:
    488
    I'm still confused by why you think changing the capitalisation of a variable is going to affect anything.

    Is the issue that you want to get rid of the light-bulb icon that is showing up for that line? If so, why don't you hover (or click, I can't remember which) the light-bulb and see what it is suggesting to happen. It might just be that you have defined a variable
    offset
    and put a
    Vector2
    in it, but the are never using the
    offset
    variable anywhere else.