Giter Club home page Giter Club logo

mobileconsolekit's People

Contributors

pixeption avatar vbnn2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mobileconsolekit's Issues

Auto-Save logs feature

Hi,

I've missed the automatic log saving feature (AFAIK the logs are not saved automatically on Android) so I've implemented it. These are patch files so you may add it to the project if you feel like. It is a bool in LegConsoleSettings and uses the EventBridge and LogReceiver.OnLogReceived to save logs when they arrive. I've made some minimal refactoring to avoid bigger copy-pastes but some more could be done in that regard.

Thanks for the useful asset!

EventBridge.txt
LogConsole.txt
LogConsoleSettings.txt
LogInitializeOnLoad.txt
LogReceiver.txt
ShareLogViewBuilder.txt

Log type in shared log file

Hello!

We sharing log file a lot. And sometimes it's hard to find log error or understand what kind of type is that log (Log, Warging or Error)
To make reading log file more easily can you, please, insert in log file information about LogType ?

Log file formatting code in lib, so we cannot change this functionality.

Errors in ProBuilder when importing Mobile Console Kit

Hi!

Unity version: 2019.4.28
ProBuilder version: 4.5.2
Mobile Console Kit version: 2.1.0

I've installed Mobile Console Kit by passing the git repository into the Package Manager. Immediately after this a lot of errors appeared in the Console:

Library\PackageCache\[email protected]\Editor\EditorCore\LogEditor.cs(41,83): error CS0117: 'Log' does not contain a definition for 'k_ProBuilderLogFileName'
Library\PackageCache\[email protected]\Editor\EditorCore\LogEditor.cs(27,25): error CS0117: 'Log' does not contain a definition for 'SetLogLevel'
Library\PackageCache\[email protected]\Editor\EditorCore\LogEditor.cs(28,25): error CS0117: 'Log' does not contain a definition for 'SetOutput'

and so on. It looks like the Log.DLL causes this problem by hiding the Log class.

Missing TextMeshPro references

Hey there,

your Mobile Console is a really great asset. For some reason all TextMeshProUGUI script references where missing in the prefabs / scene game objects when my colleague took my commit via Unity Collab.

Is there a way to fix the "missing script" references systematically?

Best regards

New input system compatibility

Hello!
I have experiment with new input system for unity. And as it right now MCK not compatibility with new input system.
InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings.

So for quick fix in script LogConsole.cs change Update to

        private void Update()
        {
            if (Application.platform == RuntimePlatform.IPhonePlayer)
                return;

#if ENABLE_INPUT_SYSTEM
            if (UnityEngine.InputSystem.Keyboard.current.escapeKey.wasPressedThisFrame)
            {
                Back();
            }
#endif

#if ENABLE_LEGACY_INPUT_MANAGER
            if (Input.GetKeyUp(KeyCode.Escape))
            {
                Back();
            }
#endif
        }

        private void Back()
        {
            if (_stackViewBuilders.Count > 0)
            {
                _PopSubView();
            }
            else if (_logPanel.activeSelf)
            {
                ToggleShow();
            }
        }

According to unity documentation users can have both input systems active.

NullReference when stop playing

I noticed that I get this null reference when I stop playing on editor:

MissingReferenceException: The object of type 'RectTransform' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.RectTransform.get_anchoredPosition () (at <7d87237cea3743d093e22c5b98f74fba>:0)
UnityEngine.RectTransform.get_offsetMin () (at <7d87237cea3743d093e22c5b98f74fba>:0)
MobileConsole.UI.RecycleScrollView.IsViewAtBottom () (at Library/PackageCache/com.pixeption.mck@b94a04b6da/Internal/RecycleScrollView/RecycleScrollView.cs:555)
MobileConsole.UI.LogView.OnLogReceived (MobileConsole.LogInfo logInfo) (at Library/PackageCache/com.pixeption.mck@b94a04b6da/Internal/Scripts/Views/LogView.cs:96)
MobileConsole.LogReceiver.LogMessageReceived (System.String message, System.String stackTrace, UnityEngine.LogType type) (at Library/PackageCache/com.pixeption.mck@b94a04b6da/Internal/Scripts/Core/LogReceiver.cs:45)
UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, UnityEngine.LogType type, System.Boolean invokedOnMainThread) (at <7d87237cea3743d093e22c5b98f74fba>:0)
UnityEngine.Debug:Log(Object)
DG.Tweening.Core.Debugger:LogReport(Object) (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/Debugger.cs:73)
DG.Tweening.Core.DOTweenComponent:OnDestroy() (at D:/DG/_Develop/__UNITY3_CLASSES/_Holoville/__DOTween/_DOTween.Assembly/DOTween/Core/DOTweenComponent.cs:132)

Maybe its because my DOTween is not on safe mode, but would be nice to get this fixed.

Make capability to set file extension for log file in LogConsoleSettings

Hello!

I really love your plugin and recommend to everyone.

Can you create settings to be able to set custom file extension for shared log file.
Right now log file extension is .txt. And this files always open with notepad.
We want log file be with extension .log, so we can choose different program for this kind of files.

Right now this code not in lib so we can change it by hardcode, but it would be sooooo nice if we have this kind of capability in future version.

Thank you!

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.