Skip to content

Instantly share code, notes, and snippets.

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

mika unitycoder

✅
‏‏‎
View GitHub Profile
@unitycoder
unitycoder / life-hacks.md
Last active October 4, 2026 12:08
Life Hacks Tips

cheaper hotels

  • find hotel in booking apps or others, then contact them directly, ask how much if pay directly. (to avoid booking com fees etc)

learn any language

time goes faster if do same things

Your brain doesn't age because of time. It ages because of repetition.

@unitycoder
unitycoder / mlagents.md
Last active May 20, 2020 22:38
Unity Machine Learning ML Agents
@unitycoder
unitycoder / Whats Wrong with Enterprise Outlook Email.md
Last active May 12, 2025 06:13
Whats Wrong with Enterprise Outlook Email

Settings

  • Bad default settings (UI)
  • No EU standard timeformat DD/MM/YYYY
  • Advertising (nearby restaurants etc), suggested replies, joyful animations is enabled by default

Writing Emails

  • You cannot erase part of the URL link when writing email! it erases the whole string with backspace..
  • all text is with red squiggly lines, because of wrong language spell checker
  • link previews are enabled by default, annoying
  • writing toolbar with send and discard buttons is below email, so you cannot see big area for writing (until press enter to fill page and send button is always in different position based on email length)
@unitycoder
unitycoder / HideTaskbarIcon.cs
Created May 12, 2020 20:27
Hide / Remove Unity Taskbar Icon
// remove unity taskbar icon https://forum.unity.com/threads/can-the-taskbar-icon-of-a-unity-game-be-hidden.888625/#post-5838658
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;
using UnityEngine;
public class HideTaskbarIcon : MonoBehaviour
{
@unitycoder
unitycoder / nodejs.md
Last active November 24, 2022 18:23
Hosting AWS Node.js
@unitycoder
unitycoder / StreamMusic.cs
Created April 15, 2020 12:04
Stream mp3 UnityWebRequestMultimedia
// https://forum.unity.com/threads/load-mp3-files-saved-locally-to-audioclip.851434/#post-5616211
IEnumerator StreamMusic(string songPath) {
if(System.IO.File.Exists(songPath)) {
using (var uwr = UnityWebRequestMultimedia.GetAudioClip("file://" + songPath, AudioType.AUDIOQUEUE))
{
((DownloadHandlerAudioClip)uwr.downloadHandler).streamAudio = true;
yield return uwr.SendWebRequest();
if (uwr.isNetworkError || uwr.isHttpError)
@unitycoder
unitycoder / BillboardVerticalZDepth.shader
Created April 9, 2020 09:04
2D Billboard Vertical Depth Angle Clipping Shader Fix
// https://forum.unity.com/threads/problem-solving-2d-billboard-sprites-clipping-into-3d-environment.680374/#post-5689456
Shader "Unlit/BillboardVerticalZDepth"
{
Properties
{
_MainTex("Texture", 2D) = "white" {}
}
SubShader
{
@unitycoder
unitycoder / JobLogger
Created April 5, 2020 18:17
JobSystem ECS Debug Log
// https://forum.unity.com/threads/as-debug-log-is-a-problem-in-job-i-made-this-simple-trick.860464/
public static class JobLogger
{
[BurstDiscard] public static void Log(params object[] parts) => Debug.Log(AppendToString(parts));
[BurstDiscard] public static void LogWarning(params object[] parts) => Debug.LogWarning(AppendToString(parts));
[BurstDiscard] public static void LogErrot(params object[] parts) => Debug.LogError(AppendToString(parts));
public static string AppendToString(params object[] parts)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
for (int i = 0, len = parts.Length; i < len; i++) sb.Append(parts[i].ToString());
@unitycoder
unitycoder / BindingWrapperClass.cs
Created March 17, 2020 14:21
How to store control overrides made in the new input system to the PlayerPrefs and load it again
// source https://twitter.com/BinaryImpactG/status/1239859249662083072
// How to store control overrides made in the new input system to the PlayerPrefs and load it again.
// Call LoadControlOverrides on Awake.
// Call StoreControlOverrides after the UI rebinding calls as in the sample #unity provides
///
/// The following should be in a class!
///
public InputActionAsset control;