GithubHelp home page GithubHelp logo

Comments (6)

yasirkula avatar yasirkula commented on July 20, 2024

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 );

from unityingamedebugconsole.

UnquotidianVi avatar UnquotidianVi commented on July 20, 2024

It happens in the build, changing the command didn't help.
image

from unityingamedebugconsole.

UnquotidianVi avatar UnquotidianVi commented on July 20, 2024

It actually seems to popup into the editor log. The message just doesn't display all the commands.
image

from unityingamedebugconsole.

yasirkula avatar yasirkula commented on July 20, 2024

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.

from unityingamedebugconsole.

UnquotidianVi avatar UnquotidianVi commented on July 20, 2024

Oh, okay. Maybe the help command should call multiple messages to display the commands in that case? It is a bit confusing otherwise. 😄

from unityingamedebugconsole.

yasirkula avatar yasirkula commented on July 20, 2024

Alternatively, you can expand the last log automatically when a console command is entered. To do so:

  • Add this function to DebugLogRecycledListView.cs:
public DebugLogItem GetLastLogItem()
{
	return logItemsAtIndices[currentBottomIndex];
}
  • Add this code to DebugLogManager.OnValidateCommand function, right under the SetSnapToBottom( true ); line:
if( ( logFilter & DebugLogFilter.Info ) == DebugLogFilter.Info )
{
	LateUpdate();
	LayoutRebuilder.ForceRebuildLayoutImmediate( logItemsScrollRect.content );
	recycledListView.UpdateItemsInTheList( true );
	recycledListView.GetLastLogItem().OnPointerClick( nullPointerEventData );
}

from unityingamedebugconsole.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.