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
#!/bin/sh | |
scons platform=macos arch=arm64 module_mono_enabled=yes target=editor vulkan_sdk_path=$HOME/Developer/VulkanSDK/1.3.261.1 | |
bin/godot.macos.editor.arm64.mono --headless --generate-mono-glue modules/mono/glue | |
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin | |
cp -r misc/dist/macos_tools.app ./Godot.app | |
mkdir -p Godot.app/Contents/MacOS | |
cp bin/godot.macos.editor.arm64.mono Godot.app/Contents/MacOS/Godot |
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
DROPBOX_ROOT = File.expand_path("~/Hoge Dropbox") + "/hoge" | |
PROJECT_ROOT = "Unity" | |
ASSETS_ROOT = "#{PROJECT_ROOT}/Assets" | |
ADDRESSABLE_RESOURCES_ROOT = "#{ASSETS_ROOT}/AddressableResources" | |
REFERENCED_RESOURCES_ROOT = "#{ASSETS_ROOT}/ReferencedResources" | |
SPRITES_ROOT = "#{REFERENCED_RESOURCES_ROOT}/Sprites" | |
BACKGROUND_ROOT = "#{REFERENCED_RESOURCES_ROOT}/Background" | |
SPINE_CHARACTER_ROOT = "#{REFERENCED_RESOURCES_ROOT}/SpineResources/Characters" | |
SPINE_EFFECT_ROOT = "#{REFERENCED_RESOURCES_ROOT}/SpineResources/Effects" | |
SPINE_MAP_ROOT = "#{REFERENCED_RESOURCES_ROOT}/SpineMapResources" |
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
namespace Project | |
{ | |
export class HtmlParser | |
{ | |
public static Parse(html: string): HtmlParser | |
{ | |
return new HtmlParser(html); | |
} | |
private constructor(private readonly html: string) |
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
#!/bin/sh | |
set -e | |
pwd | |
PACKAGE_LINK=.shaderIncludes/Packages | |
PACKAGE_CACHE=Unity/Library/PackageCache | |
if [ -d $PACKAGE_LINK ]; then |
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
let g:autosession_file = getcwd().'/.vimsession' | |
function! AutoSession_Create() | |
if getftype(g:autosession_file) == '' | |
exec "mks!" g:autosession_file | |
endif | |
endfunction | |
function! AutoSession_Restore() | |
if getftype(g:autosession_file) != '' |
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
import UnityEngine | |
import UnityEditor | |
import System | |
import System.IO | |
// C# の例 | |
// プロジェクト ウィンドウの選択されたオブジェクトからアセットバンドルを作成 | |
// コンパイルした後は "Menu" -> "Assets" へ移動して選択肢から一つを選択して | |
// アセットバンドルをビルド | |
class BuildAssetBundle: |
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
" 簡易Wiki的なもの | |
" テキスト中にある、[[hoge]]のようにタグで括られた文字列をファイル名としてジャンプします | |
" nmap ,v :call SWikiOpenTag()<CR> | |
" とでもしておくと便利かも | |
let g:SWikiTagBegin = '[[' |
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
public class Parameters { | |
public float warrior_walk_speed; | |
public float warrior_run_speed; | |
public int warrior_life; | |
public float hungry_speed; | |
public float initial_bread; | |
} | |
public class CustomSerializer<T> : MessagePackSerializer<T> where T : class, new() { | |
public CustomSerializer(SerializationContext ownerContext) : base(ownerContext) {} | |
protected override void PackToCore(Packer packer, T objectTree) { |
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
#!/usr/bin/ruby | |
# filetype: ruby | |
# encoding: utf8 | |
# プレイヤーからのビルド後にパッチを適用する | |
PATCH = '/usr/bin/patch' | |
pwd = ARGV[0] | |
target = ARGV[1] |
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; | |
using UnityEditor; | |
using System; | |
using System.Collections; | |
public class FreezeMesh : MonoBehaviour { | |
[Flags] | |
enum FreezeFlag { | |
kSCALE = 1<<0, | |
kROTATION, | |
kTRANSLATION, |
NewerOlder