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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Super basic question, updating object variable

Discussion in 'Visual Scripting' started by xandragames, Sep 25, 2020.

  1. xandragames

    xandragames

    Joined:
    Jun 11, 2019
    Posts:
    8
    I am new at scripting duh, but I am having issues with pulling a variable from another object. It triggers with no red flags, and I have one trigger updating the variable in a different object than the one I am trying to update it in.

    For instance, I start the program, the variable pulls from the other object at 1. And it activates but never increases past one, even though the variable is increasing to the thousands.

    I have it pulling from the prefab, I am unsure if thats the reason. I dont know how to pull the variable from the other object otherwise.

    Anybody know either, how to pull without linking the prefab, or to have it properly update.

    Most likely its pulling from an unupdating prefab.