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; | |
/// <summary> | |
/// Modified Gradient effect script from http://answers.unity3d.com/questions/1086415/gradient-text-in-unity-522-basevertexeffect-is-obs.html | |
/// -Uses Unity's Gradient class to define the color | |
/// -Offset is now limited to -1,1 | |
/// -Multiple color blend modes | |
/// | |
/// Remember that the colors are applied per-vertex so if you have multiple points on your gradient where the color changes and there aren't enough vertices, you won't see all of the colors. | |
/// </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.Collections; | |
using Kogane; | |
using UnityEngine; | |
using UnityEngine.Networking; | |
public class Example : MonoBehaviour | |
{ | |
private IEnumerator Start() | |
{ | |
const string url = |
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; | |
using UnityEngine; | |
public class Example : MonoBehaviour | |
{ | |
private IEnumerator Start() | |
{ | |
Screen.SetResolution( 640, 480, true ); | |
yield return null; |
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
// ReSharper disable UnusedMember.Global | |
namespace MyProject | |
{ | |
/// <summary> | |
/// 購入エラーコード | |
/// https://sdk.revenuecat.com/android/4.6.1/public/com.revenuecat.purchases/-purchases-error-code/index.html | |
/// </summary> | |
public enum PurchasesErrorCode | |
{ |
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 Cysharp.Threading.Tasks; | |
namespace Kogane | |
{ | |
/// <summary> | |
/// Purchases 型の拡張メソッド | |
/// </summary> | |
public static class PurchasesExtensionMethods | |
{ |
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
Shader "Custom/Noise/Truchet - Black circles" | |
{ | |
Properties | |
{ | |
_Factor1 ("Factor 1", float) = 1.0 | |
_Factor2 ("Factor 2", float) = 1.0 | |
_Factor3 ("Factor 3", float) = 1.0 | |
_GridSize ("GridSize", float) = 1.0 | |
} |
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; | |
namespace Kogane | |
{ | |
/// <summary> | |
/// Android 端末の「設定 > システム > 日付と時刻」の「日時を自動的に設定」と「タイムゾーンを自動的に設定」の設定値を取得できるクラス | |
/// </summary> | |
public static class AndroidDeviceDateTimeChecker | |
{ | |
//================================================================================ |
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
#if UNITY_EDITOR_OSX | |
#else | |
using UnityEditor; | |
using UnityEditor.ShortcutManagement; | |
using UnityEngine; | |
namespace Kogane.Internal | |
{ | |
/// <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 UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public static class Example | |
{ | |
private const int WIDTH = 16; | |
static Example() | |
{ |
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.Runtime.InteropServices; | |
using UnityEditor; | |
internal static class DarkMode | |
{ | |
[InitializeOnLoadMethod] | |
[DllImport( "【ここに UnityEditorDarkMode.dll のパスを書く】", EntryPoint = "DllMain" )] | |
public static extern void DllMain(); | |
} |
NewerOlder