This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
namespace MB.Other | |
{ | |
public class BatchDownloader | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1.0.{build} | |
branches: | |
only: | |
- master | |
image: Visual Studio 2015 | |
configuration: Debug | |
platform: x64 | |
environment: | |
appveyor_rdp_password: P@ssw0rd1 | |
init: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="../Scripts/Generated/AtomicWork.d.ts" /> | |
/// <reference path="../Scripts/Generated/Editor.d.ts" /> | |
/// <reference path="../Scripts/Generated/EditorWork.d.ts" /> | |
const FooBuilderServiceUILabel = "Foo Builder"; | |
const FooBuilderServiceTBPath = "EditorData/FooBuilder.tb.txt"; | |
class FooBuilderService implements | |
Editor.HostExtensions.HostEditorService, | |
Editor.HostExtensions.ProjectServicesEventListener, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Included directly in Unity | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
public static class CompiledInUnity | |
{ | |
private const int ArrayLength = 20; | |
private const long BatchSize = 10000000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Net.Mail; | |
using System.Threading; | |
using System.Threading.Tasks; | |
public static class SmtpClientExtensions | |
{ | |
/// <summary> | |
/// Extension method to have SmtpClient's SendMailAsync respond to a CancellationToken | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Configuration; | |
using System.Reflection; | |
using System.ComponentModel; | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
public class SpecificInstanceOfGameExample : MonoBehaviour | |
{ | |
#region DLL Imports | |
private const string UnityWindowClassName = "UnityWndClass"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// A coroutine used to run a function on once-off thread | |
/// Note that the thread function is responsible for ending itself, | |
/// the coroutine makes no effort to explicitly end the thread. | |
/// </summary> | |
/// <typeparam name="T">Type of the parameter passed to the thread function</typeparam> | |
/// <param name="threadFunc">The thread function</param> | |
/// <param name="doneFunc">Function called when the thread has completed it's work and is no longer alive.</param> | |
/// <param name="param">Parameter passed to the thread function</param> | |
/// <returns>An enumerator</returns> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Text; | |
public class MultiDragAndDropExample : EditorWindow | |
{ | |
[MenuItem("Examples/Multi Drag and Drop")] | |
public static void ShowWindow() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Unity automatically generated files/folders | |
[Ll]ibrary/ | |
[Tt]emp/ | |
[Oo]bj/ | |
[Uu]nityGenerated/ | |
# Autogenerated VS/MD solution and project files | |
*.csproj | |
*.unityproj | |
*.sln |
NewerOlder