Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug possible bug with repeating

Discussion in 'Documentation' started by OhHelloBye, Feb 20, 2021.

  1. OhHelloBye

    OhHelloBye

    Joined:
    Aug 3, 2020
    Posts:
    22
    i am a begginer that just joined i feel like im missing something very big but its just an issue with calling it. i am writing a grass spawning script similar to minecraft except without perlin noise and some code is not repeating itself when im telling it to. what the specific issue is that i am telling it to do some code if this int is 1 and this other int is 1 but even when i check the specific prefab and confirm that it has these numbers it is not executing the code. i will leave the code and the screenshot of how it looks here. thanks
     

    Attached Files:

  2. OhHelloBye

    OhHelloBye

    Joined:
    Aug 3, 2020
    Posts:
    22
    also i managed to repeat the issue with this code that i tried doing instead of that one
     

    Attached Files:

  3. OhHelloBye

    OhHelloBye

    Joined:
    Aug 3, 2020
    Posts:
    22
    i think it was lazy coding, i managed to fix it but i forgot how. anyways if this is a bug then you should probably fix it.
     
  4. OhHelloBye

    OhHelloBye

    Joined:
    Aug 3, 2020
    Posts:
    22
    it was 100% my fault. im an idiot