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
{ | |
"title": "Customized by @monry", | |
"rules": [ | |
{ | |
"description": "capslock キーを IME のトグルに割り当て", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "caps_lock", |
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
.npmignore | |
yarn-debug.log* | |
yarn-error.log* | |
Examples/ | |
Examples.meta | |
Tests/ | |
Tests.meta |
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.AddressableAssets; | |
using UnityEditor.AddressableAssets.Settings; | |
using UnityEditor.Build; | |
using UnityEditor.Build.Reporting; | |
namespace PretendLand.Common.Editor | |
{ | |
public class BuildAddressablesBeforeBuildPlayer : IPreprocessBuildWithReport | |
{ | |
int IOrderedCallback.callbackOrder => 1; |
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
name: Publish UPM Package | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest |
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.Linq; | |
using UnityEditor; | |
namespace Foo | |
{ | |
[InitializeOnLoad] | |
public static class ScenesInBuildConfigurator | |
{ | |
private static string SceneName { get; } = "Bar"; |
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
{ | |
"title": "Launch Quick Search in Unity", | |
"rules": [ | |
{ | |
"description": "Double tap 'left_shift' to show Quick Search in Unity", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { "key_code": "left_shift" }, | |
"to": [ |
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 | |
mkdir -p scripts | |
curl -Lo scripts/first-aid-for-upm.sh https://gist.github.com/monry/9765f64ed0e73aed5d794c6ca6d2b389/raw/a3db343f841044d3d2bfd9988171c81689f1cb77/first-aid-for-upm.sh | |
chmod a+x scripts/first-aid-for-upm.sh | |
cat package.json | jq '.scripts.postinstall |= . + " && ./scripts/first-aid-for-upm.sh"' | jq -M . > package.json.tmp | |
mv package.json.tmp package.json |
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 | |
cat package.json | jq -M 'del(.dependencies."@umm/unirx") | del(.dependencies."@umm/zenject")' | jq -M . > package.json.tmp | |
mv package.json.tmp package.json | |
rm -Rf Assets/Modules/umm@{unirx,zenject} | |
find Assets -name "*.asmdef" | xargs gsed -i 's/"umm@unirx"/"UniRx"/' | |
find Assets -name "*.asmdef" | xargs gsed -i 's/"umm@unirx-Async"/"UniRx.Async"/' |
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 Zenject; | |
namespace ExtraZenject | |
{ | |
public static class SignalExtensions | |
{ | |
public static DeclareSignalIdRequireHandlerAsyncTickPriorityCopyBinder ConnectSignal<TFrom, TTo>(this DiContainer container) where TTo : new() | |
{ | |
return container.ConnectSignal<TFrom, TTo>(_ => new TTo()); |
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 |