Home

Unity: Fade Between Scenes in Unity

Fade Between Scenes in Unity Add all scenes to Build Settings (just in case). In the Hierarchy window, create UI > Image. This will create a Canvas > Image and EventSystem. The EventSystem can be delete if not using any UI input. Create an Empty game object then rename it to something like FadeTransition. Selec...

Read more

Unity: Add Comments/Notes to a GameObject

Adding Comments/Notes to a GameObject In order to add a note to a gameObject in Hierarchies window. Create a script called “ThisIsComment”. Remove everything from the script and copy the following code to it: using UnityEngine; /// <summary> /// Attach this script to any gameObject for which you want to put a note. /// </summary&...

Read more

tmux: Change Default tmux Key Binding

Changing tmux Default Key Binding Bt default, command key bindings are prefixed by ctrl+b. For example, to vertically split a window type ctrl+b %. After splitting a window into multiple panes, a pane can be resized by the hitting prefix key (e.g. ctrl+b) and, while continuing to hold ctrl, press left/right/up/down. Swapping panes is achived i...

Read more

Unity: Rename a Unity Project

Renaming the Unity Project To change Unity project name: Change the unity project folder name (the parent folder of Assets folder) Remove any file with .sln or .csproj suffixes under the project folder. (Unity will regenerate them) Source: How to Rename a Unity project?

Read more

macOS: Parallels Tools Fix for Ubuntu

Fixing Parallels Tools Copy the files from the Parallels installation media and drop them in a folder somewhere (eg. ~/parallels_fixed) Go to the kmods directory (cd ~/parallels_fixed/kmods) and extract the files (tar -xzf prl_mod.tar.gz) Remove prl_mod.tar.gz file from that directory (rm prl_mod.tar.gz) Find this file: ~/<your-fold...

Read more

Arch Linux: Pacman unable to lock database

Cause of the problem Such as system crashed or power shortage while the pacman is still running. This cause the file db.lck is still present. The “db.lck” file The db.lck file is located in /var/lib/pacman/db.lck. Remove this file to solve this problem. Source: pacman: “unable to lock database”

Read more

Arch Linux: Reduce Swappiness

Reducing Swappiness Swappiness is to optimize the use of Swap and RAM. And it allows establishing the balance between both. By default when Arch Linux uses a lot of the RAM memory it starts writing some files into the Swap partition on your hard drive. The problem with this is the hard disk is slower than the RAM, soo this makes the system slow...

Read more

Linux: Basic Linux Filesystem

The Linux Filesystem /bin (and /sbin) were intended for programs that needed to be on a small / partition before the larger /usr, etc. partitions were mounted. These days, it mostly serves as a standard location for key programs like /bin/sh, although the original intent may still be relevant for e.g. installations on small embedded devices....

Read more