public GameObject aiArrow;
aiArrow.transform.parent = this.gameObject.transform;
When I try to set up a prefab as a child of another object the following error occurs.
Setting the parent of a transform which resides in a Prefab Asset is disabled to prevent data corruption
How to Set up this "aiArrow" Prefab as a child of another game object.