I had an issue with the position of the cloned prefab(canvas) being way off. Here’s the updated code used to fix the issue:
GameObject CanvasClone = Instantiate(enemyCanvasPrefab, transform.position, Quaternion.identity, transform);
print(transform.position);
print(this.transform.position);
CanvasClone.transform.position = this.transform.position;
transform.position and this.transform.position are the same, yet when I try to instantiate it without a gameobject the cloned prefab ends up with some crazy position relative to the UI socket.
The issue has been resolved, but I’d just like to know why just instantiating-- vs setting it to a gameobject and changing the position-- doesnt work, if anyone knows.