Skip to content

Instantly share code, notes, and snippets.

View unitycoder's full-sized avatar
✅
‏‏‎

mika unitycoder

✅
‏‏‎
View GitHub Profile
@unitycoder
unitycoder / adb.txt
Last active October 8, 2025 08:47
android adb commands Nibiru Launcher Override and Others
// start app with profiler
adb.exe shell am start -n com.company.game/com.unity3d.player.UnityPlayerActivity -e -profiler-enable -profiler-capture-frame-count 5 -profiler-log-file profile-capture.raw
https://discussions.unity.com/t/analyze-and-optimize-oculus-quest-app-launch-time/851844/11
### force kill app
adb shell ps
adb shell am force-stop <PACKAGE>
update unity android api version
@unitycoder
unitycoder / php-notes.txt
Last active April 12, 2025 12:35
PHP Notes
> xampp php mail not sending emails
check php.ini sendmail value, this is wrong, doesnt contain exe:
sendmail_path = "\"C:\xampp\sendmail\" -t"
correct,
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
> error: PHP Strict standards: Resource ID#15 used as offset, casting to integer (15)
this error message indicates that you are using a resource ID as an array index.
@unitycoder
unitycoder / php-mistakes.txt
Created October 14, 2017 12:11
PHP Some Text Appears At Start Of The Page, But There Is No Echo, Die or other outputs in code
Check start of the PHP file, you might have text before php tag:
WhyMe<?PHP
@unitycoder
unitycoder / android-errors.md
Last active July 13, 2026 10:40
Unity Android Build Errors

Sdk Platform Tools version 0.0 < 36.0.0

uninstall PlasticSCM! https://discussions.unity.com/t/sdk-platform-tools-version-0-0-36-0-0/1704108/47

cannot build and run to device

  • reconnect and turn usb cable upside down
  • or, reconnect, press the usb connection notification android, switch mode to tether or something else, then back to transfer (it should ask for [ ] allow debug from this device, yes)

google play complains: "Invalid Data safety declaration" Data safety (Device or other IDs not declared)

@unitycoder
unitycoder / test3.bvh
Created October 25, 2017 06:30
test bvh
HIERARCHY
ROOT hip
{
OFFSET 0 0.00736396 -0.139019
CHANNELS 6 Xposition Yposition Zposition Zrotation Yrotation Xrotation
JOINT abdomen
{
OFFSET 0 -0.00736396 0.139018
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT chest
@unitycoder
unitycoder / test4.bvh
Created October 26, 2017 03:07
test4.bvh
HIERARCHY
ROOT hip
{
OFFSET 0 0.00736396 -0.139018
CHANNELS 6 Xposition Yposition Zposition Zrotation Yrotation Xrotation
JOINT abdomen
{
OFFSET 0 -0.00736396 0.153649
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT chest
@unitycoder
unitycoder / remotepowershell.ps1
Last active October 27, 2017 03:51
Remote PowerShell
[void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[System.Windows.MessageBox]::Show()
[System.Windows.Forms.MessageBox]::Show('Do you want to format your C: drive? Press No To Format.' , "Status" , 4)
@unitycoder
unitycoder / test5.bvh
Created October 31, 2017 03:22
test5.bvh
HIERARCHY
ROOT hip
{
OFFSET 0 0.00736396 -0.139018
CHANNELS 6 Xposition Yposition Zposition Zrotation Yrotation Xrotation
JOINT abdomen
{
OFFSET 0 -0.00736396 0.153649
CHANNELS 3 Zrotation Yrotation Xrotation
JOINT chest
@unitycoder
unitycoder / XRay2017.shader
Created November 9, 2017 08:16
XRay Shader 2017
// xray mouse pos shader test v2.0 - mgear - http://unitycoder.com/blog
Shader "UnityLibrary/Effects/XRay2017"
{
Properties
{
_MainTex ("Base (RGB)", 2D) = "white" {}
_ObjPos ("ObjPos", Vector) = (1,1,1,1)
_Cutoff ("Alpha cutoff", Range(0,1)) = 0.5
_Radius ("HoleRadius", Range(0.1,5)) = 2