First, The option to use the blox name instead of the GUID works great and along with the notes in the console, really helps find the script and makes it easier to read in the generated code.
Second, The option to get the script to generate even in failure, really helped identify the problem(s), so the additional features are very useful.
I'm of course getting the error still, but in both cases below I'm just not sure if I'm doing it incorrectly (from a blox logic perspective), if it's not supported or if maybe there is a bug...
Issue1: Upon script gen i get the same error as above "bloxContainer" issue.
in blox (menuController) I'm calling (trigger event) another blox event. as seen here:
here is the code that is causing the problem:
// Event name: loadGameMenu
public System.Collections.IEnumerator loadGameMenu(BloxEngine.BloxEventArg args)
// Spin Cogs and initiate Sfx
BloxEngine.BloxUtil.GetComponent <BloxEngine.BloxContainer>(b_audioPlayer_2924.GetGameObject()).bloxContainer.TriggerEvent("playCogs", 0F);
BloxEngine.BloxUtil.GetComponent <BloxEngine.BloxContainer>(b_audioPlayer_2924.GetGameObject()).bloxContainer.TriggerEvent("playSoundFx", 0.2F);
Seems to be that by calling those events (methods), its failing or cant find them?
Issue2: the other problem is with the audio playoneshot.
code generating the error:
// Event name: playSoundFx
public void playSoundFx(BloxEngine.BloxEventArg args)
b_audioPlayer_69d1.GetComponent <UnityEngine.AudioSource>().PlayOneShot(b_CogSfx_e59f.GetValue(), 0.5F);
b_audioPlayer_69d1.GetComponent <UnityEngine.AudioSource>().PlayOneShot(b_SlideSfx_42df.GetValue(), 0.3F);
related errors in console:
Assets/projectData/Blox/scripts/menuController_1254.cs(180,99): error CS1503: Argument
#1' cannot convertUnityEngine.Object' expression to type `UnityEngine.AudioClip'
Assets/projectData/Blox/scripts/menuController_1254.cs(181,73): error CS1502: The best overloaded method match for `UnityEngine.AudioSource.PlayOneShot(UnityEngine.AudioClip, float)' has some invalid arguments
any thoughts or input would be appreciated and thanks again for your help.