Public variables removing itself when building

I am using an prefeb with udon graph with public variables, which one is an game object using another udon graph component and when i started to build and test, it removes it and leaves “missing” i tried using game object as a prefebs but its not giving the outcome i wanted.

any ideas?

Screenshot 2025-11-01 212823

The “id_giver” gives just an int value witch goes in a array in the prefab for infomation sake.

using the name of the game object to give out an string and convert it an int to give the same thing, but if there’s a better way, please tell me. i am shooting myself in the foot to many times..