Skip to content

Instantly share code, notes, and snippets.

@robinduckett
robinduckett / IsometricCameraController.cs
Created January 1, 2019 16:08
RPG Top Down / Isometric Camera Controller in C# for Unity
// RPG Top Down / Isometric Camera Controller
// Tested on Unity 2018.3.0f1
// While using the setup suggested by
// https://answers.unity.com/questions/12027/how-to-do-a-camera-that-is-top-downisometric.html
// I found no off the shelf camera controllers that worked as I would have liked
// This is for basic mouse control (Rotate, Pan, Zoom)
// Improvement suggestions left as exercise for the reader:
@Hertzole
Hertzole / SceneObject.cs
Last active May 4, 2024 13:04
Unity scene object to easily assign scenes in the inspector.
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
[System.Serializable]
public class SceneObject
{
[SerializeField]
private string m_SceneName;
@Geri-Borbas
Geri-Borbas / AllEditorAssetNames.txt
Last active January 11, 2023 03:06
Asset names in the Unity Editor Asset Bundle. More at http://eppz.eu/blog/unity-editor-icon-assets/
avatar/arrow.fbx, arrow, UnityEngine.GameObject
avatar/defaultavatar.fbx, DefaultAvatar, UnityEngine.GameObject
avatar/defaultgeneric.fbx, DefaultGeneric, UnityEngine.GameObject
avatar/dial_flat.prefab, dial_flat, UnityEngine.GameObject
avatar/dude.fbm/body normal.tga, body normal, UnityEngine.Texture2D
avatar/dude.fbm/body_color_map.tga, body_color_map, UnityEngine.Texture2D
avatar/dude.fbm/body_specular_map.tga, body_specular_map, UnityEngine.Texture2D
avatar/dude.fbm/eyes_color_map.tga, eyes_color_map, UnityEngine.Texture2D
avatar/dude.fbm/eyes_specular_map.tga, eyes_specular_map, UnityEngine.Texture2D
avatar/dude.fbm/face normal.tga, face normal, UnityEngine.Texture2D
@timmolderez
timmolderez / pom.xml
Last active June 12, 2024 03:03
Adding dependencies to local .jar files in pom.xml
If you'd like to use a .jar file in your project, but it's not available in any Maven repository,
you can get around this by creating your own local repository. This is done as follows:
1 - To configure the local repository, add the following section to your pom.xml (inside the <project> tag):
<repositories>
<repository>
<id>in-project</id>
<name>In Project Repo</name>
<url>file://${project.basedir}/libs</url>
@jobsamuel
jobsamuel / readme.md
Last active January 19, 2024 18:26
Run NodeJS as a Service on Ubuntu 14.04 LTS

Run NodeJS as a Service on Ubuntu 14.04 LTS

With Node you can write very fast JavaScript programs serverside. It's pretty easy to install Node, code your program, and run it. But > how do you make it run nicely in the background like a true server?

  • Go to /etc/init/
  • $ sudo vim yourapp.conf
  • Paste script.conf
  • $ sudo start yourapp
  • And when you wanna kill the process $ sudo stop yourapp