I have created a prefab. In Unity Scene editor, I dragged the prefab into the scene and named it PrefabA (this is a GameObject instance of the Prefab).
Now, I need to update the PrefabA position.
How can I access the GameObject "PrefabA" during runtime via script?
GameObject prefab = GameObject.Find("Canvas/PrefabA").GetComponent<GameObject>();
The code above throws Object reference not set to an instance of an object.