Use CommonLibraryLua in script

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
alicewmgg
Posts: 1
Joined: Thu Jul 10, 2025 7:28 am

Use CommonLibraryLua in script

Post 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.
User avatar
Tony Li
Posts: 23401
Joined: Thu Jul 18, 2013 1:27 pm

Re: Use CommonLibraryLua in script

Post by Tony Li »

Hi,

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