myButtonElement = KickStarter.player.AddComponent(_2dxFX_Shiny_Reflect); with _2dxFX_Shiny_Reflect being the name of the script. Does this require vetasoft 2Dxfx to be integrated with AC really to work. Pity buttons do not have an add component section in the editor but as I guess to add any components such as 2Dxfx would require a lot of additional work. Any pointers you can give would be much appreciated.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Your AC Menu will have to be drawn with Unity UI, as the default "Adventure Creator" drawing method is not component-based and so components cannot be added to it. A tutorial on converting Menus to rely on Unity UI can be found here. See also the "Unity UI menus" chapter of the Manual.
Once your AC Menu is linked to a Unity UI canvas, you can just add the required component onto the UI prefab itself.