Skip to content

Instantly share code, notes, and snippets.

@bzgeb
bzgeb / TriggerContainerEditor.cs
Created September 28, 2012 14:52
Example Drag & Drop area in a custom inspector for the Unity editor
using UnityEngine;
using System.Collections;
using UnityEditor;
[CustomEditor (typeof(TriggerContainer))]
public class TriggerContainerEditor : Editor
{
private SerializedObject obj;
@gitaarik
gitaarik / git_submodules.md
Last active July 16, 2024 09:42
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.
@rutcreate
rutcreate / InspectorEditor.cs
Last active October 28, 2022 14:30
Unity3D: How to iterate properties through inspector
using UnityEngine;
using UnityEditor;
using System.Collections;
namespace Opendream {
[CustomEditor(typeof(MovingPlatform))]
public class InspectorEditor : Editor {
public override void OnInspectorGUI() {