I am using
AC.SceneManager.AddPrefab to create a Marker2D, and wish to reference the added marker in some actions. Is that possible either in the ActionList window or in Actions written by script (
https://adventurecreator.org/tutorials/writing-interaction-through-script)?
Comments
Marker marker = AC.SceneManager.AddPrefab ("Navigation", "Marker2D", true, false, false).GetComponent<Marker>();
It works in Unity Editor. But when I tried to build, it gives an error of
AC.SceneManager' does not contain a definition for `AddPrefab'
How may I solve this?