2018-01-01から1年間の記事一覧
:: ----------- :: xcopy拡張 %1を%2にディレクトリごとコピーする :: %1 コピー元ディレクトリ :: %2 コピー先ディレクトリ :: ----------- :XcopyDir xcopy /e /y %1 %2\%1\ exit /b 例) test.bat @echo off cd /d %~dp0 call :XcopyDir <src_dir> <dst_dir> exit /b :XcopyD</dst_dir></src_dir>…
Live2D Cubism SDKのsampleの「SampleApp1」をUnityで確認しながら、 「SampleApp1/Assets/Live2D/framework」のフレームワーク見れば大体の 動きがわかる。 そのフレームワークのLAppModelクラスに機能一覧が載っており、Unityでの実際の動作を確認してやり…
dirコマンドでフォルダ内のファイルを取得 > ファイルリストに書き込み、for文で実行する。 set testDir="/path/dir" dir /b /s /a-d %testDir% > file.list for /f %%I in (file.list) do ( echo %%I ) del file.list
参考 https://anchan828.github.io/editor-manual/web/assetpostprocessor.html using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; using UnityEditorInternal; using System.IO; public class SpriteAss…
ラベルをコールを使って、関数のように処理を書く @echo off echo 【%0】 call :Initialize call :Cleanup call :CreateResouce call :CreateHoge exit /b :: -------------- :: 初期化 :: -------------- :Initialize echo %0 set TOOL1=Tool\hoge.exe set …
https://qiita.com/r-ngtm/items/50afdb29c671001bb290 http://baba-s.hatenablog.com/entry/2017/11/02/103000 例) UnityEngine.dll, UnityEditor.dll UnityEngine.UI.dllを含んだdllの作成 SET UNITY_PATH=C:\Program Files\Unity2017_3_0f3 SET DLL_FILEN…
例えばゲーム作成でスコアを管理するときに、テキストと値はセットにした方が管理しやすい。ので、スコア管理クラスを作成。 何を継承元にすればいいかわからん Phaser3のドキュメントみてみたら、Phaser.GameObjects.GameObjectがベースになるらしいので、…
graphics系にsetInteractiveが効かない? graphics.on('pointerdown' ..)とgraphicsに対してのボタンになってしまう気がする 適当な画像とってきてspriteにsetInteractiveしたほうがはやい 継承がよくわからない sceneはPhaser.Sceneを継承すればよいが、coco…
VS Code Vim Auto Comment Blocks Project Manager Skeletor file-icons GitLens { "editor.minimap.enabled": false, "editor.renderWhitespace": "all", "editor.tabSize": 2, "editor.fontSize": 14, "editor.fontFamily": "Inconsolata, 游ゴシック Medi…
※ あまり深いところからやるとこんがらがるので、浅くローカルで外部からjobを実行するところから行います。 1 ジョブを実行 Jenkinsのジョブをリモートから実行する方法 上記の記事を参考に、ジョブを作成し、認証トークン、APIトークンを作成。 # curl -X …
https://tikyuu.github.io/ jekyllからブログ生成まで githubで<user-name>.github.ioのリポジトリ作成 chocolateyを使用する choco install -y ruby 環境変数に"C:\tools\ruby25(各version)\bin"を追加 gem install jekyll bundler jekyll new TestBlog cd TestBlog je</user-name>…
1 先頭にhttp://, https://がついてないとエラー出る。 最初localhost:8000とか適当に書いてたら java.net.MalformedURLException: Unknown protocol: localhost ってログが出た。 2 そもそもlocalhost使ってるとエラー? java.net.ConnectException: failed…
適当にコピペokです。 fs.py # coding:utf-8 import os import subprocess import glob import shutil import sys import filecmp import logging """ 必要なファイル操作をまとめた自作モジュール fs (file system) batファイルでできることを一通りそろえ…
適当適当にコミット ブランチを作成し、変更をコミット 反映したいブランチ(master)に切り替えて、 ブランチ1の"seccond commit"部分でmergeを選択 ファストフォワード可能でも新たなコミットを作成する にチェックを入れてマージ 不要になったブランチ1を削…
class TestData { Dictionary<int, Dictionary<int, string>> data5 = new Dictionary<int,Dictionary<int, string>> { { 1, new Dictionary<int, string> { {10, "aiueo" } } }, { 2, new Dictionary<int, string> { {20, "aaaaa" } } }, { 3, new Dictionary<int, string> { {30, "10000" } } }, }; Dictionary<int, int>…</int,></int,></int,></int,></int,dictionary<int,></int,>
#target photoshop preferences.rulerUnits = Units.PIXELS; function cTID(s) { return app.charIDToTypeID(s); } function sTID(s) { return app.stringIDToTypeID(s); } function RGBc(r, g, b) { var color = new ActionDescriptor(); color.putDouble(c…
FileSystemモジュール fs.py import os import subprocess import glob import shutil import sys def join(dir, *file): return os.path.join(dir, *file) def pathExist(path): return os.path.exists(path) def isWildCard(path): return path.find("*") …
SymbolScriptable.cs using UnityEngine; using UnityEditor; using System.Collections; using System.Collections.Generic; using System.IO; using System; using System.Linq; public class SymbolScriptable : ScriptableObject { [System.Serializable…
public class TestScript { public enum User { Name, Hp, Mp, Skill, }; private Dictionary<User, string> dic = new Dictionary<User, string> { {User.Name, "taro" }, {User.Hp, "100" }, {User.Mp, "200" }, {User.Skill, "kick" }, }; public enum Setting { IsVisible = 0, IsAut</user,></user,>…
参考 https://qiita.com/tak-solder/items/1718cc91daefad41efed https://qiita.com/tak-solder/items/87bc4dd4803654c0c84a やりたいこと ムスタッシュはよく見るので、そんな感じをイメージして実装。 phpテンプレートのように使う。 拡張子はムスタッシュ…
master/slaveの環境構築 /master /sync Vagrantfile /slave /sync Vagrantfile # centos7 vagrant init centos/7 vagrant up vagrant ssh # ip check # ip a | grep 192 # apache sudo yum -y install httpd sudo systemctl start httpd.service sudo system…
インターフェイスと多態性 (WWWの生成) // WWwの生成 public interface IRequest { UnityEngine.WWW create(); } // リクエストに必要なデータを追加 public abstract class Request : IRequest { public abstract UnityEngine.WWW create(); protected read…
pearとかpharでphpDocumentorをインストールしてみたがめっちゃエラーでたので、composerをインストール。 https://haniwaman.com/windows-composer/ https://blog.bgbgbg.net/archives/4125 を参考に、composer.jsonに記述。 { "require-dev": { "symfony/c…
NDKのバージョンでエラーが出るっぽい。 android-ndk-r10e-windows-x86_64.exeでr10eのバージョンに変更。 そして、なぜかNDKのパスが%ANDROID_SDK_ROOT%/ndk-bundleになるので、 ndk-bundleの中身を削除し、ndk-r10eのフォルダの中身をまるごとコピー。 Blu…
creator.d.tsでエラーが出まくる よく見ると _の部分でエラー。なので、多分htmlの変換だろうということで _ → _ に置換。 https://www.w3.org/MarkUp/html-spec/html-spec_13.html Spriteにマウスイベント追加 @property(cc.Sprite) sprite: cc.Spr…
flex使おう。
再生は完全に思い出す必要がある。 再認は与えられたヒントの中から選ぶことができる。 再生と再認(学生が解説すると - 心の風景 認知的体験 テストで単語の意味を書かせる問題よりも、選択肢の中から単語 の意味を選ぶ問題の方が簡単である。 プログラミン…
1 コントロールパネルからVS Code削除。 2 %APPDATA%/Code フォルダ削除。 3 %USERPROFILE%/.vscode フォルダ削除。 4 再インストール