playMaker

Author Topic: Help with SendMessage action calling C#  (Read 1850 times)

mn6000

  • Playmaker Newbie
  • *
  • Posts: 17
Help with SendMessage action calling C#
« on: July 05, 2016, 09:36:31 PM »
I'm using the sendMessage action to call a method in a C# script.

The examples online were in JS so I may have this wrong.

The fsm start state has an action which sends "Test.Message".

The game object has a C# component with the following code:


public class Test : MonoBehaviour {

public void Message () {
      Debug.Log ("SendMessage");
   }
}


I would expect to see "SendMessage" written to console when the fsm enters the state but I see nothing.

Thank you.

play_edu

  • Full Member
  • ***
  • Posts: 116
Re: Help with SendMessage action calling C#
« Reply #1 on: July 06, 2016, 12:01:42 AM »
methode name is Wrong ("Test.Message".)


just call mathad or function name don't add class name(Message)

« Last Edit: July 06, 2016, 12:03:46 AM by play_edu »

mn6000

  • Playmaker Newbie
  • *
  • Posts: 17
Re: Help with SendMessage action calling C#
« Reply #2 on: July 06, 2016, 01:17:11 PM »
That's the answer. Thank you!