4
4

More than 5 years have passed since last update.

UnityにNSStringをUnitySendMessageで送りたいネー

Posted at

// 送りたい文字列
NSString* str = @"kongou";

// HogeObjectはUnityのシーン内のオブジェクト名
UnitySendMessage("HogeObject", "_Callback", (char *)[str UTF8String]);

こうしないと何故かUnity側のLogで表示されなかった…間違いとかあれば指摘お願いします。

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4