Page 1 of 1

Use CommonLibraryLua in script

Posted: Thu Jul 10, 2025 7:34 am
by alicewmgg
Hi there, I'm looking for the best way to use the Message system included with the CommonLibraryLua - these work great in the Dialogue Editor but I want to be able to send a message (and trigger an action through a listener, etc) through script. However there seems to be no easy way to access the CommonLibraryLua MonoBehaviour other than using potentially a GetComponent on my DialogueManager. Is this the best way to do this? Thanks in advance.

Re: Use CommonLibraryLua in script

Posted: Thu Jul 10, 2025 7:42 am
by Tony Li
Hi,

You can use the MessageSystem class directly in your C# code. No need to use CommonLibraryLua.