Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Hasan Bayat EmpireWorld

🏠
Working from home
Block or report user

Report or block EmpireWorld

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@EmpireWorld
EmpireWorld / ExtraEditorGUILayout.cs
Created Jul 14, 2019
Extra Editor GUI Layouot Methods for drawing GUI, such as ReadonlyTextArea, ReadonlyTextField and more.
View ExtraEditorGUILayout.cs
using UnityEngine;
using UnityEditor;
public static class ExtraEditorGUILayout
{
public static void ReadonlyTextArea(string text, params GUILayoutOption[] options)
{
EditorGUILayout.SelectableLabel(text, EditorStyles.textArea, options);
}
@EmpireWorld
EmpireWorld / ImageLoader.cs
Last active Oct 10, 2018 — forked from maxoja/ImageLoader.cs
Unity How to : Load Image from WebLink or URL
View ImageLoader.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ImageLoader : MonoBehaviour
{
public string url = "https://i.pinimg.com/originals/9e/1d/d6/9e1dd6458c89b03c506b384f537423d9.jpg";
public RawImage rawImage;
@EmpireWorld
EmpireWorld / MinMax.cs
Last active Oct 18, 2019
Unity Min Max Slider Implementation
View MinMax.cs
using System;
using UnityEngine;
[Serializable]
public struct MinMax
{
[SerializeField]
private float min;
[SerializeField]
@EmpireWorld
EmpireWorld / README.md
Last active Apr 19, 2019
A Scene Switcher Utility Window for Unity
View README.md

Scene Switcher

A Scene Switcher Utility Window for Unity, Switch between Scenes Effortlessly.

Inspired by Kenney sceneWindow.cs

Deprecation Notice

This gist is deprecated due to release of this utility on Asset Store, you can now get the latest version of this utility from Asset Store, but it is available here as is without any updates.

@EmpireWorld
EmpireWorld / README.md
Last active Apr 19, 2019
A Scene Manager Utility Window for Unity
View README.md

Scene Manager

A Scene Manager utility window for Unity.

Inspired by Kenney sceneWindow.cs

Deprecation Notice

This gist is deprecated due to release of this utility on Asset Store, you can now get the latest version of this utility from Asset Store, but it is available here as is without any updates.

@EmpireWorld
EmpireWorld / ColorPickerWindow.cs
Last active Oct 24, 2018
A Color Picker Window for Unity
View ColorPickerWindow.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
public class ColorPickerWindow : EditorWindow
{
protected Color color = Color.white;
protected Color32 color32 = new Color32 ( 255, 255, 255, 255 );
@EmpireWorld
EmpireWorld / Blockstack.md
Created Dec 22, 2017
Blockstack Verification
View Blockstack.md
View keybase.md

Keybase proof

I hereby claim:

  • I am empireworld on github.
  • I am hasanbayat (https://keybase.io/hasanbayat) on keybase.
  • I have a public key whose fingerprint is EBEE C46A 4B0F D8C6 4FF4 1B46 9A63 B2B3 2011 4989

To claim this, I am signing this object:

@EmpireWorld
EmpireWorld / Singleton.cs
Last active Jul 6, 2019
Best Singleton implementation in Unity, Combine it with preload scene pattern to achieve best implementation.
View Singleton.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public abstract class Singleton<T> : MonoBehaviour where T : Component
{
#region Fields
/// <summary>
@EmpireWorld
EmpireWorld / Inventory.cs
Last active Sep 9, 2017
Learn how to make a inventory save and load using Save Game Pro.
View Inventory.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using SaveGamePro;
public class Inventory : MonoBehaviour {
public struct Item {
public string name;
You can’t perform that action at this time.