Browsing articles tagged with " debug"
Jul
7
2020

Find out which script Disabled or Enabled this GameObject?

Small script to help tracking who disabled or enabled gameobject,https://github.com/UnityCommunity/UnityLibrary/blob/master/Assets/Scripts/Helpers/Debug/WhoDisabledOrEnabled.cs Usage:– Add script to the gameobject you need to track– press play– see console for the error messages, select the error message row, and see stack trace for the calling script names and lines.

Feb
18
2020

Debug.Log: Show actual color from Color variable

Had to debug what color is the script returning for mouse pixel position, but printing out the value didn’t really help:Debug.Log(col);Since the output is like this (you don’t know whats the actual color)RGBA(0,349, 0,204, 0,416, 0,000) Enter Debug.Log with <color></color> and utf8 block:Debug.Log(“<color=#”+ColorUtility.ToHtmlStringRGB(col)+”>██████████</color> = “+col); […]

Aug
9
2019

Deploy to Android device with wireless connection

Using windows Command Prompt: // check if your device is presentadb devices// get device ip address (see inet row) adb shell ip addr show wlan0// enable tcpip and portadb tcpip 5555// connect device (use your device ip address)adb connect 192.168.1.90:5555 Now you can remove usb […]

Oct
19
2018

HSV Debugging and Color Match Shader

Quick test for color matching using shader, by converting colors into HSV and comparing target color with h-s-v threshold values. See Shader source at the bottom. (main image: Changing target color, shows inverted color for the texture in that matching hue position) Shader has different […]

Aug
7
2018

Faster Debug.Log

Debug.Log() slows down your editor or even hangs if it happens to run inside some long loop, but you can make it faster by disabling stacktrace from Debug.Log()! (see image above) Tested for-loop with 100000 iterations in editor (Unity 2018.1.6f1) – 25000ms with stacktrace enabled […]

May
21
2017

iOS App crashes only if downloaded from Appstore or TestFlight

Had annoying issue with one ios app, it worked perfectly when build locally from xcode to device, but after uploading to AppStore, that version crashes in all devices. Solution was rather simple: Solution Disable [ ] Include bitcode option when uploading your app archive to […]

Jul
23
2016

Using RenderDoc with Unity (graphics debugger)

“RenderDoc is a stand-alone graphics debugging tool” Getting Started – Download standalone https://renderdoc.org/builds – Install it – Start Unity 5.3 or later (I tested with 5.4beta.f2) – Right click over the Game- or Scenewindow title, RenderDoc option should be displayed in the menu, Select it […]

May
4
2015

Building .apk with Release mode

Uploading .apk to Google Play can give error message: “Upload failed You uploaded an APK that was signed in debug mode. You need to sign your APK in release mode.” Building .apk with Release mode – File / Build Settings – Click button “Player Settings” […]

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch Instagram

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.