Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: sofianehamza on December 10, 2021, 12:04:12 AM

Title: Trying to create an asset bundle action error with instantiate
Post by: sofianehamza on December 10, 2021, 12:04:12 AM
hello i am trying to create an asset bundle action but when I change from mono behavior to FsmStateaction I get an error with "instantiate" as shown below


(https://englishdz.net/data/other/InstantiateError.PNG)
Title: Re: Trying to create an asset bundle action error with instantiate
Post by: djaydino on December 10, 2021, 09:14:59 AM
Hi.
if you hover over Instantiate what error/solution does it give?

If you look to the Create Object action you can see that the instantiate is used differently.

Code: [Select]
var newObject = (GameObject)Object.Instantiate(go, spawnPosition, Quaternion.Euler(spawnRotation));
If you search 'Bundle' on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) you will find several asset bundle actions