ahmad.karami Posted April 20, 2020 Share Posted April 20, 2020 using System; using System.Collections; using System.Collections.Generic; using Unigine; Unigine.Console System.Console 01-How to use Console.Run for Unigine? Unigine.Console.Run("LoadWorld MyWorld01"); 02-How to see Log.Message in Unigine? Log.Message("RUNING....!!"); Link to comment
silent Posted April 20, 2020 Share Posted April 20, 2020 Quote 02-How to see Log.Message in Unigine? By default all messages are displayed only in console. To see the log messages without opened console you need to execute following code: Console.Run("show_messages 1"); Please, keep in mind that C# logic is only works when you launch the process via green play button. Regarding the first issue, there is no such console command as "LoadWorld". You need to use Unigine.Console.Run("world_load my_world"); You also may need to remove Using Unigine; to understand which methods from which classes are called. 1 How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
ahmad.karami Posted April 20, 2020 Author Share Posted April 20, 2020 2 hours ago, silent said: By default all messages are displayed only in console. To see the log messages without opened console you need to execute following code: Console.Run("show_messages 1"); Please, keep in mind that C# logic is only works when you launch the process via green play button. Regarding the first issue, there is no such console command as "LoadWorld". You need to use Unigine.Console.Run("world_load my_world"); You also may need to remove Using Unigine; to understand which methods from which classes are called. YOU SOLVED & I SAW THAT , THANK YOU MR @silent using System; using System.Collections; using System.Collections.Generic; using Unigine; void Update() { Unigine.Console.Run("Ahmad Karami..."); } Link to comment
Recommended Posts