Editing Game Objects in an Editor Window

I’m extending the Editor with my own Editor Window, but I am having trouble accessing game objects and setting their variables in Editor mode.

I am trying to set the variables using GameObject.Find(“LogicController”).GetComponent().varname

However, it doesnt seem to change them, but doesn’t throw up any errors either. Anyone have a clue how to do this?

I’ve never had any issues with this.

Is the game running?

if it’s not and you want to modify game objects when the game isn’t running you may need to add the [ExecuteInEditMode] attribute to your LogicController.