This file contains hidden or 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.IO; | |
using UnityEditor; | |
using UnityEditor.Callbacks; | |
public class RemoveMobileWarningWebGL | |
{ | |
private const string JS_EXTENSION = ".js"; | |
[PostProcessBuild] | |
public static void OnPostProcessBuild(BuildTarget target, string targetPath) |
This file contains hidden or 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.Reflection; | |
using UnityEngine.UI; | |
public static class UIExtensions | |
{ | |
private static readonly MethodInfo toggleMethod; | |
static UIExtensions() | |
{ | |
toggleMethod = GetSetMethod(typeof(Toggle)); |
This file contains hidden or 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 UnityEditor; | |
namespace JfranMora | |
{ | |
public static class CompileBeforePlay | |
{ | |
[InitializeOnLoadMethod] | |
public static void Initialize() | |
{ | |
if (EditorApplication.isPlaying) return; |
This file contains hidden or 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 static class StringTagExt | |
{ | |
public static string AddBoldTag(this string text) | |
{ | |
return text.AddTag("b"); | |
} | |
public static string AddItalicTag(this string text) | |
{ | |
return text.AddTag("i"); |
This file contains hidden or 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 System.IO; | |
using System.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
public class AnimatorEventsGenerator | |
{ | |
private const string ScriptTemplate = "// AUTOGENERATED CODE: {CLASSNAME}\n" + | |
"\nusing UnityEngine;" + |
This file contains hidden or 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; | |
public class DebugDrawGameObjectMesh : MonoBehaviour | |
{ | |
[Header("Configuration")] | |
[Space] | |
public bool drawWireMesh = true; | |
public Color wireColor = new Color(0, 0, 0, .8f); |
NewerOlder