Skip to content

Instantly share code, notes, and snippets.

View daemon3000's full-sized avatar

Cristian Geambasu daemon3000

  • Bucharest, Romania
View GitHub Profile
@daemon3000
daemon3000 / TagsAndLayersTool.cs
Last active August 2, 2023 03:59
A tool for Unity that generates type safe tags and layers
#region [Copyright (c) 2014-2017 Cristian Alexandru Geambasu]
// Distributed under the terms of an MIT-style license:
//
// The MIT License
//
// Copyright (c) 2014-2017 Cristian Alexandru Geambasu(daemon3000@hotmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
@daemon3000
daemon3000 / PauseManager.cs
Last active September 3, 2020 02:27
A pause manager for Unity
using UnityEngine;
using System;
using System.Collections.Generic;
public enum PauseManagerState
{
Pausing,
UnPausing,
Idle,
Paused
@daemon3000
daemon3000 / BinaryFormatter.cs
Last active August 29, 2015 14:24
BinaryFormatter
#region [Copyright (c) 2015 Cristian Alexandru Geambasu]
// Distributed under the terms of an MIT-style license:
//
// The MIT License
//
// Copyright (c) 2015 Cristian Alexandru Geambasu
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
@daemon3000
daemon3000 / ProfilePrefs.cs
Last active August 29, 2015 14:24
ProfilePrefs
#region [Copyright (c) 2015 Cristian Alexandru Geambasu]
// Distributed under the terms of an MIT-style license:
//
// The MIT License
//
// Copyright (c) 2015 Cristian Alexandru Geambasu
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
@daemon3000
daemon3000 / GameObjectPool.cs
Last active August 29, 2015 14:24
GameObjectPool
#region [Copyright (c) 2015 Cristian Alexandru Geambasu]
// Distributed under the terms of an MIT-style license:
//
// The MIT License
//
// Copyright (c) 2015 Cristian Alexandru Geambasu
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
@daemon3000
daemon3000 / GetResourcePathTool.cs
Last active August 29, 2015 14:25
GetResourcePathTool
#region [Copyright (c) 2015 Cristian Alexandru Geambasu]
// Distributed under the terms of an MIT-style license:
//
// The MIT License
//
// Copyright (c) 2015 Cristian Alexandru Geambasu
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
@daemon3000
daemon3000 / TextureToBase64Tool.cs
Last active May 13, 2024 06:36
A tool for Unity that converts a Texture2D object to a Base64 string
#region [Copyright (c) 2015 Cristian Alexandru Geambasu]
// Distributed under the terms of an MIT-style license:
//
// The MIT License
//
// Copyright (c) 2015 Cristian Alexandru Geambasu
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
@daemon3000
daemon3000 / BuiltInResourcesWindow.cs
Created August 18, 2015 16:34
BuiltInResourcesWindow
// From Unity wiki: http://wiki.unity3d.com/index.php/Show_Built_In_Resources
using System;
using UnityEditor;
using UnityEngine;
using System.Collections.Generic;
public class BuiltInResourcesWindow : EditorWindow
{
[MenuItem( "Window/Built-in styles and icons" )]
@daemon3000
daemon3000 / EnumExtensions.cs
Created September 8, 2015 13:29
Enum extension methods
#region [Copyright (c) 2015 Cristian Alexandru Geambasu]
// Distributed under the terms of an MIT-style license:
//
// The MIT License
//
// Copyright (c) 2015 Cristian Alexandru Geambasu
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
@daemon3000
daemon3000 / EnumFlagAttribute.cs
Created November 17, 2015 09:24 — forked from ChemiKhazi/EnumFlagAttribute.cs
Unity3d property drawer for automatically making enums flags into mask fields in the inspector.
using UnityEngine;
public class EnumFlagAttribute : PropertyAttribute
{
public string enumName;
public EnumFlagAttribute() {}
public EnumFlagAttribute(string name)
{