// 送りたい文字列
NSString* str = @"kongou";
// HogeObjectはUnityのシーン内のオブジェクト名
UnitySendMessage("HogeObject", "_Callback", (char *)[str UTF8String]);
こうしないと何故かUnity側のLogで表示されなかった…間違いとかあれば指摘お願いします。
Go to list of users who liked
More than 5 years have passed since last update.
// 送りたい文字列
NSString* str = @"kongou";
// HogeObjectはUnityのシーン内のオブジェクト名
UnitySendMessage("HogeObject", "_Callback", (char *)[str UTF8String]);
こうしないと何故かUnity側のLogで表示されなかった…間違いとかあれば指摘お願いします。
Register as a new user and use Qiita more conveniently
Go to list of users who liked