reload an entire GameObject on runtime

lets say i changed a instanced gameobject with a button, that instanced gameobject runs on Void start, so i need to refresh the script to make the changed gameobject to load

how can i make the gameobject to reload so that script refreshes?

use application.load

Wut?

@abysswolf
To me it’s not exactly clear what you mean, but instead of running all your code directly in the Start() method you could provide a public method, something like Initialize(), which is called from Start() instead. Advantage is that you can then call that method at any other time as well by getting a reference to your gameObject respectively it’s component and then calling the method.

So instead of this:

void Start()
{
    // do stuff here
}

Do this:

void Start()
{
    Initialize();
}

public void Initialize()
{
    // do stuff here
}