Comments (6)
Thank you very much, you are the best!
from unityingamedebugconsole.
If there are compilation errors, please post them here. In any case, you'll have to edit the IngameDebugConsole prefab and replace that input field with TextMesh Pro's input field. Then, fix any missing references in the prefab's Inspector.
from unityingamedebugconsole.
There are no compilation errors, I have also changed the prefab, when I write something in the TMP_inputfield and I give it in, nothing happens
from unityingamedebugconsole.
I'm assuming that there are no runtime errors in the console either. DebugLogManager.OnValidateInput's else if( addedChar == '\n' )
condition is responsible from submitting the command. You should add a Debug.Log there to see if it is getting called. If not, check the value of addedChar with another Debug.Log to see which key is submitted when Enter key is pressed, e.g. Debug.Log(((int) addedChar) + " " + addedChar);
.
from unityingamedebugconsole.
Add a Debug.log to the condition else if (addedChar == '\ n')
but absolutely nothing happened and also add text to the condition if (clearCommandAfterExecution)
and the text did not change either...
Pd: There are no errors in the console nor any errors of execution.
from unityingamedebugconsole.
You can make the following additions to DebugLogManager.cs:
public TMP_InputField commandInputField;
private bool moveInputFieldCaretToEnd;
private void OnEnable()
{
commandInputField.onSubmit.AddListener( OnSubmitCommand );
}
private void OnDisable()
{
commandInputField.onSubmit.RemoveListener( OnSubmitCommand );
}
private void OnSubmitCommand( string text )
{
// Clear the command field
if( clearCommandAfterExecution )
commandInputField.text = "";
if( text.Length > 0 )
{
if( commandHistory.Count == 0 || commandHistory[commandHistory.Count - 1] != text )
commandHistory.Add( text );
commandHistoryIndex = -1;
// Execute the command
DebugLogConsole.ExecuteCommand( text );
// Snap to bottom and select the latest entry
SetSnapToBottom( true );
}
commandInputField.ActivateInputField();
moveInputFieldCaretToEnd = true;
}
private void LateUpdate()
{
if( moveInputFieldCaretToEnd )
{
commandInputField.MoveTextEnd( true );
moveInputFieldCaretToEnd = false;
}
}
from unityingamedebugconsole.
Related Issues (20)
- [Feature request] Add command history navigation buttons for mobile devices HOT 7
- when i matter UnityIngameDebugConsole to the BoatAttack project, I get this error. HOT 2
- Nintendo Switch and BoatAttack - The interface freezes and I can't interact HOT 2
- Build error due to DebugLogManager
- [Feature request] Collect logs when disabled HOT 1
- [Feature request] Supports safe area. HOT 4
- [Suggestion] add version info to Readme HOT 1
- Android Log is not work HOT 1
- Cannot build on Android HOT 1
- Are there any files stored all logs? HOT 2
- 19 Warnings when entering playmode on unity 2022 HOT 7
- Make copy to clipboard a separate package HOT 2
- UIToolkit HOT 2
- When saving a Unity project, it randomly tries to save the IngameDeugConsole.prefab HOT 1
- Can log entries always be expanded? HOT 1
- Disable unity input manager HOT 1
- Unconstrained memory usage due to log entries HOT 3
- README.md does not match README.txt HOT 2
- [Feature request]Automatic Locate HOT 2
- After running, output a NullReferenceException every second.Until focus game panel. HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unityingamedebugconsole.