(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| using UnityEngine.EventSystems; | |
| namespace UnityEngine.UI | |
| { | |
| [AddComponentMenu("Layout/Content Size Fitter", 141)] | |
| [ExecuteInEditMode] | |
| [RequireComponent (typeof (RectTransform))] | |
| public class ContentSizeFitter : UIBehaviour, ILayoutSelfController | |
| { |
| using System; | |
| using System.Collections.Generic; | |
| using UnityEngine.Events; | |
| using UnityEngine.EventSystems; | |
| using UnityEngine.UI.CoroutineTween; | |
| namespace UnityEngine.UI | |
| { | |
| /// <summary> | |
| /// Base class for all UI components that should be derived from when creating new Graphic types. |
| using System.Collections.Generic; | |
| using UnityEngine.EventSystems; | |
| namespace UnityEngine.UI | |
| { | |
| [AddComponentMenu ("UI/Scroll Rect", 33)] | |
| [SelectionBase] | |
| [ExecuteInEditMode] | |
| [RequireComponent(typeof(RectTransform))] |
| using System.Collections.Generic; | |
| using System.Text; | |
| namespace UnityEngine.EventSystems | |
| { | |
| public abstract class PointerInputModule : BaseInputModule | |
| { | |
| public const int kMouseId = -1; | |
| public const int kFakeTouchesId = -2; |
| #!/bin/bash | |
| # @link https://gist.github.com/mattscilipoti/8424018 | |
| # | |
| # Called by "git push" after it has checked the remote status, | |
| # but before anything has been pushed. | |
| # | |
| # If this script exits with a non-zero status nothing will be pushed. | |
| # | |
| # Steps to install, from the root directory of your repo... |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| /* | |
| * This code is provided as is without warranty, guarantee of function, | |
| * or provided support | |
| */ | |
| using System.Collections; | |
| using UnityEngine.Events; | |
| namespace UnityEngine.UI.CoroutineTween | |
| { |
| #pragma strict | |
| /*********************************************************************** | |
| * Notes | |
| ***********************************************************************/ | |
| /* | |
| * This is a boilerplate controller for a 2D or 2.5D platform game. | |
| * To that end, this controller allows for movement along the X and Y | |
| * axes only. There is built-in support for jumping, double jumping, |
| # -*- coding: utf-8 -*- | |
| # java.py - sublimelint package for checking java files | |
| import sublime | |
| import subprocess | |
| import os | |
| import os.path | |
| import re | |
| from base_linter import BaseLinter, INPUT_METHOD_FILE |
| using UnityEngine; | |
| using System.Collections; | |
| using System.Security.Cryptography; | |
| using System; | |
| using System.Text; | |
| public class StackMob : MonoBehaviour | |
| { | |
| public const string acceptHeader = "application/vnd.stackmob+json; version=0"; // 0 = development, 1 = production | |
| public const string apiKey = "e78a2646-d479-47b1-9ae5-65732c5eabdc"; // nixApp |