I’m not sure whats wrong, as far as I’m concerned I’m using this correctly. In fact, I’ve copied the instantiate “function” from another script that returns no errors. But when i try to launch, I get stopped by error BCE0023 “No appropriate version of ‘Radical.Instantiate’ for the Argument list ‘(UnityEngine.GameObject, UnityEngine.Vector3, UnityEngine.Quaternion)’ was found.” Here’s the script. (I know its in boo, but its fairly similar to C#, I might translate this into C# since this isn’t more widely used)
def InstantiatePrefab(): SP = GameObject.Find("SelectedPoint") PIitem as GameObject= Resources.Load(PowerInventory) //PowerInventory is a predefined string declared within the class clone as GameObject clone = (Instantiate(PIitem, LH.transform.position, LH.transform.rotation) as GameObject) clone.name = "ActivePower" CurrentNum = PInum //PInum is supposed to keep track of what the current power is
Please and Thank you!