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
{ | |
"search.showLineNumbers": true, | |
"search.useIgnoreFiles": false, | |
"search.exclude": { | |
"**/*.uxml": true, | |
"**/*.asmdef": true, | |
"**/*.playable": true, | |
"**/*.asset": true, | |
"**/*.mat": true, | |
"**/*.meta": true, |
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
/// https://gist.github.com/restush/849b5662dd82b7eb68ee78950e1a8033 | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
using UnityEngine; | |
using UnityEngine.UIElements; |
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.Collections.Generic; | |
using UnityEditor; | |
using UnityEditor.UIElements; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
public class FindMissingEditor : EditorWindow | |
{ | |
private float _progress = 0f; | |
private bool _canceled; |
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
public class MyClass | |
{ | |
// Nested classes, structs, enums | |
public class PublicNestedClass { } | |
public struct PublicNestedStruct { } | |
public enum PublicNestedEnum { A, B, C } | |
private class PrivateNestedClass { } | |
private struct PrivateNestedStruct { } | |
private enum PrivateNestedEnum { A, B, C } |
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> Custom Unity Time based on <see cref="System.Diagnostics.Stopwatch"/> </summary> | |
public class CustomTime : ITime | |
{ | |
public float TimeScale { get; set; } | |
public float Time { get; private set; } | |
public float DeltaTime { get; private set; } | |
public float UnscaledTime { get; private set; } | |
public float UnscaledDeltaTime { get; private set; } | |
public int FrameCount { get; private set; } |
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
/// Example Usage | |
{ | |
... | |
var operation = await LoadSceneOperation(nameOfScene, (progress)=>slider.value = progress); | |
... | |
... | |
operation.allowSceneActivation = true; | |
... |
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.Collections.Generic; | |
using UnityEngine; | |
///<summary> Attach this script on Monobehaviour class </summary> | |
public interface ICircleTarget | |
{ | |
/// <summary> Circle radius around target </summary> | |
float RadiusAroundTarget { get; set; } | |
/// <summary> Contain objects that following this target </summary> | |
List<Transform> CircleObjects { get; set; } |
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 UnityEngine; | |
/// <summary> | |
/// Simple Date Time based on <see cref="System.DateTime"/>. | |
/// <example> | |
/// <br/><br/> | |
/// Usage 1: | |
/// <code> | |
/// var simpleDateTime = new SimpleDateTime(DateTime.Now); |
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.Linq; | |
using UnityEngine; | |
using UnityEngine.Android; | |
using UnityEngine.Networking; | |
using UnityEngine.UI; | |
public class Initializer : MonoBehaviour | |
{ |