Search found 2 matches
- Sat Mar 03, 2018 10:15 am
- Forum: Dialogue System for Unity
- Topic: Lua code threw exception 'Exception has been thrown by the target of an invocation.'
- Replies: 3
- Views: 1329
Re: Lua code threw exception 'Exception has been thrown by the target of an invocation.'
I checked, Scroll was not null. It was defined and referenced properly. I've anyway solved that issue by making a new script having different registered names doing the same thing as before. Also the new script is wrapped in namespace PixelCrushers.DialogueSystem, just in case. But now another regis...
- Sat Mar 03, 2018 2:51 am
- Forum: Dialogue System for Unity
- Topic: Lua code threw exception 'Exception has been thrown by the target of an invocation.'
- Replies: 3
- Views: 1329
Lua code threw exception 'Exception has been thrown by the target of an invocation.'
I've registered a C# method as lua in a script to instantiate a prefab as a child UI gameobject, through the sequencer. This is how I register it - Lua.RegisterFunction("SpEOC1", this, typeof(SpawnDivider).GetMethod("SpawnEOC1")); public void SpawnEOC1() { GameObject Div = (GameO...