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; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEditor; | |
| public class AssetImportLogger : AssetPostprocessor | |
| { | |
| public const string IS_ENABLE_KEY = "KEY_ASSET_IMPORT_LOGGER_IS_ENABLE"; | |
| public const string IS_START_KEY = "KEY_ASSET_IMPORT_LOGGER_IS_START"; | |
| public const string LOG_FORMAT = "path '{0}'"; |
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
| #!/usr/bin/env python3 | |
| import argparse | |
| from pathlib import Path | |
| commentSymbol = "//" | |
| parser = argparse.ArgumentParser(description="Remove comment from json.") | |
| parser.add_argument("input", help="input file path") | |
| parser.add_argument("output", help="output file path") |
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
| AndroidJavaObject localMediaPlayer = null; | |
| using (AndroidJavaClass javaUnityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer")) | |
| { | |
| using (currentActivity = javaUnityPlayer.GetStatic<AndroidJavaObject>("currentActivity")) | |
| { | |
| localMediaPlayer = new AndroidJavaObject("my/plugin/vr/ExoPlayerBridge", currentActivity); | |
| if (localMediaPlayer != 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 System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine.Assertions; | |
| using System; | |
| public class SkinnedMeshUpdater : MonoBehaviour | |
| { | |
| [SerializeField] | |
| SkinnedMeshRenderer original; |
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
| /* | |
| Note : adhocs for unity 2022.3.31 | |
| TODO : Need to Support Unity 6 with the new callback : https://docs.unity3d.com/6000.0/Documentation/ScriptReference/EditorApplication.UpdateMainWindowTitle.html | |
| and the new force update window title method : https://docs.unity3d.com/6000.0/Documentation/ScriptReference/EditorApplication.UpdateMainWindowTitle.html | |
| */ | |
| #if UNITY_2022_3_31 | |
| #define EDITOR_ALLOW_BUILDTYPE_STATUS | |
| #endif |
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 UnityEditor.Overlays; | |
| using UnityEditor.Toolbars; | |
| #if !UNITY_EDITOR | |
| #error This script must be placed under "Editor/" directory. | |
| #endif | |
| [Overlay(typeof(SceneView), "CustomToolbar/SceneViewFollowGamePlayCameraOverlay")] |
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; | |
| // Note : simple one way value binding example | |
| public class TestReactive : MonoBehaviour | |
| { | |
| public string Message | |
| { | |
| get => message; | |
| set => SetWithNotify(ref message, value, nameof(Message), OnValueChanged); |
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
| #!/bin/bash | |
| # Tom Hale, 2016. MIT Licence. | |
| # Print out 256 colours, with each number printed in its corresponding colour | |
| # See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163 | |
| set -eu # Fail on errors or undeclared variables | |
| printable_colours=256 |
OlderNewer