0
Fixed

Assigning OnButtonClick Listener indirectly

RickDeckard 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 7

When i assign an event GameObject listener directly in the graph, it fires perfectly, but when the same is achieved indirectly, the event does not fire. ( the upper does nothing, the lower works fine :) )

This is a newly created project in unity 2017.2, and I imported bolt without messing with any of the settings.

Am I missing something obvious?

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Pending Review

Hi Rick! Welcome to the community :)

When you press play and enable the Values toggle in the graph window, what do you see between the output of GetButton and On Button Click? Is it the right game object? (game_button)

Thanks :)

I see game_button, yes

I cannot seem to reproduce this here; can you send me a simple test scene + associated script?

I tried creating a brand new project, but it still doesn't work. I sent you a scene/source file combo.

Unity Version: 2017.2.0f3 Personal

Bolt imported without changing any of the default settings.

Is there any kind of chance, that it occurs because I use personal edition? :)


And when I look at the two buttons, the one that does not work hasn't got a Unity Message Listener component.

Also, I found this in Unity 2017.2 changeset:

Backwards Compatibility Breaking Changes

  • Scripting: UnityEngine.dll is now split into separate dlls for each UnityEngine module.

I changed the used assemblies list, and now I can see Transform, and GameObject types in the unit list. ( I couldn't before )


Fixed in Alpha

Thanks for the report. I've found the cause of the issue and fixed it for v.1.1.4!

Regarding the backwards compatibility change, it's been reported often and is already fixed for v.1.1.3.

Wow,

Thanks for the quick fix!!