Closed UnquotidianVi closed 4 years ago
Does this happen in a build or in the editor? If it is the former, are you using IL2CPP or Mono? Does changing the AddCommand function as follows make any difference: DebugLogConsole.AddCommand<string>( "/tp", "changes to specified level", ChangeLevel );
It happens in the build, changing the command didn't help.
It actually seems to popup into the editor log. The message just doesn't display all the commands.
Oh, I see 😄 In-game console shows only the first two lines of the logs to save space. But you can click on logs to expand them and see the whole log.
Oh, okay. Maybe the help command should call multiple messages to display the commands in that case? It is a bit confusing otherwise. 😄
Alternatively, you can expand the last log automatically when a console command is entered. To do so:
public DebugLogItem GetLastLogItem()
{
return logItemsAtIndices[currentBottomIndex];
}
SetSnapToBottom( true );
line:if( ( logFilter & DebugLogFilter.Info ) == DebugLogFilter.Info )
{
LateUpdate();
LayoutRebuilder.ForceRebuildLayoutImmediate( logItemsScrollRect.content );
recycledListView.UpdateItemsInTheList( true );
recycledListView.GetLastLogItem().OnPointerClick( nullPointerEventData );
}
I added a command using
DebugLogConsole.AddCommandInstance()
shown below. Command works fine when typed but it doesn't appear under the help command.I might have missed some steps to include the command under help, in which case the documentation should probably be improved.