Search Unity

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.