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; | |
using UnityEngine; | |
// Add one empty line at the end of your file | |
//Use interfaces | |
//Max 4 words for per variable | |
//One method should be do only one thing (Save some exceptions) | |
//Maximum line width is 100 characters. | |
//Namespace following the folder order after _ProjectName/Scripts/... |
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; | |
[System.Serializable] | |
public class ResourceAsset | |
{ | |
public string GUID; | |
public string path; | |
public string name; | |
protected Object cachedObject; | |
protected ResourceRequest resourceRequest; |
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
void OnEnable() | |
{ | |
Application.RegisterLogCallback(HandleUnityLog); | |
} | |
private void OnDisable() | |
{ | |
Application.RegisterLogCallback(null); | |
} | |
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; | |
using UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using TMPro; | |
using UnityEngine.UI; | |
public class ReplaceFont |
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
CurrentBundleVersion.version |
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 CurrentBundleVersion | |
{ | |
public static readonly string version = "1.0.31"; | |
} | |
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; | |
using UnityEditor; | |
using System.IO; | |
[InitializeOnLoad] | |
public class BundleVersionChecker | |
{ | |
/// <summary> | |
/// Class name to use when referencing from code. | |
/// </summary> |
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
<link rel="import" href="../paper-button/paper-button.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
box-sizing: border-box; | |
background-color: rgb(255, 255, 255); | |
} |
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 void OnPreprocessTexture() | |
{ | |
if (!isAssetProcessed) | |
{ | |
var textureImporter = assetImporter as TextureImporter; | |
textureImporter.compressionQuality = 100; | |
textureImporter.filterMode = FilterMode.Bilinear; | |
textureImporter.maxTextureSize = 2048; | |
textureImporter.textureFormat = TextureImporterFormat.AutomaticCompressed; | |
} |
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
Shader "Custom/DiffuseOverlay" { | |
Properties { | |
_Color ("Main Color", Color) = (1,1,1,1) | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
} | |
SubShader { | |
// Tags {"RenderType"="Opaque"} // original | |
Tags {"Queue" = "Overlay" "RenderType"="Opaque"} // modified | |
ZTest Always // this line is added | |
LOD 200 |