Skip to content

Instantly share code, notes, and snippets.

View muzudho's full-sized avatar

むずでょ muzudho

View GitHub Profile
@muzudho
muzudho / file0.txt
Last active February 3, 2017 08:16
UnityのAnimationControllerのデータをLibraOfficeを使って設定することに挑戦 ref: http://qiita.com/muzudho1/items/b9d16d1f64bf6e9639c0
REM ***** BASIC *****
Option Explicit
' CreateUpdateRequest シート用
Sub Main
' 0 設定、1 入力、 2 出力
Dim oSheet0 as Object ' 設定シート
@muzudho
muzudho / file0.txt
Last active February 3, 2017 20:20
UnityにCSVのインポートボタンを付けよう ref: http://qiita.com/muzudho1/items/4707ba7fca1b64c36f7f
/// <summary>
/// struct を object に渡したいときに使うラッパーだぜ☆(^~^)
/// </summary>
public class PositionWrapper
{
public PositionWrapper(AnimatorStateMachine statemachine, string propertyName)
{
this.m_statemachine = statemachine;
this.PropertyName = propertyName;
}
@muzudho
muzudho / file0.txt
Last active February 5, 2017 00:36
しかしUnityのあのステート、フルパスに悩まされるな……。対応を考えよう。 ref: http://qiita.com/muzudho1/items/0d38dcb4e2232608cbd2
"Base Layer.JMove.JMove2"
@muzudho
muzudho / file0.txt
Last active February 7, 2017 14:37
Unityのアニメーター・コントローラーのトランジションのコンディションをスプレッドシートで新規追加する方法を考えよう ref: http://qiita.com/muzudho1/items/35c9f5801872c5b9b92a
= 2 * ( 4 * 6 + 9 * 6 + 9 * 6 )
264 = 2 * ( 24 + 54 + 54 )
@muzudho
muzudho / file0.txt
Last active February 8, 2017 15:02
UnityEditorを使ってアニメーター・コントローラーのトランジションをスプレッドシートで新規追加、削除する方法を考えよう ref: http://qiita.com/muzudho1/items/9799825ade48e99397e4
UnityEditor.EditorApplication.isPlaying = true; // 再生する
@muzudho
muzudho / file0.txt
Last active February 11, 2017 02:18
Unityのステートマシンを編集する自作スクリプト StellaQL 機能まとめ ref: http://qiita.com/muzudho1/items/de34b29d3e46b69e31be
# これはコメントです。
# 这是一条评论。
# This is a comment.
# 이것은 댓글입니다.
FROM # ダメ! 命令文の後ろにコメントは書けません。
FROM # 不!评论不能在声明后面写。
FROM # No! This is not a comment.
FROM # 안돼! 명령문 뒤에 코멘트주지 않습니다.
@muzudho
muzudho / file0.txt
Last active February 9, 2017 21:19
ステートメントを連続実行する実装を考えようぜ ref: http://qiita.com/muzudho1/items/b05a57ca723b28058744
# unimplemented
TRANSITION ASSERT
SET
speed 6
FROM
"Base Layer\.Dog"
TO
"Base Layer\.Cat"
@muzudho
muzudho / file0.txt
Last active February 10, 2017 04:39
UnityEditorでレイヤーにステートを追加する自作スクリプトを作ろう ref: http://qiita.com/muzudho1/items/aeb1d546e3ca19b7ba4c
STATE INSERT
SET
name0 WhiteBear
name1 WhiteCat
name2 WhiteDog
name3 WhiteElephant
WHERE
"Base Layer"
@muzudho
muzudho / file0.txt
Last active February 10, 2017 15:43
UnityEditorでAnimatorControllerのLayerを追加する自作スクリプトを作ろう ref: http://qiita.com/muzudho1/items/0e2ed914997d9befb7db
LAYER INSERT
WORDS
"New Layer"
@muzudho
muzudho / file0.txt
Created February 11, 2017 02:15
UnityEditor で レイヤーのプロパティーをセットできなかった ref: http://qiita.com/muzudho1/items/63cab59d3ade16c5b1e3
/// <summary>
/// 元からある全てのレイヤーを削除します。ただし、レイヤーの数を1個未満にすることはできないため、最後にダミーを1個残します。
/// 工夫:シンク(参照)関係があるため、子関係のレイヤーから消していきます。
/// </summary>
/// <param name="acWrapper"></param>
public static void DeleteAllLayers_AndPutDammy(AnimatorControllerWrapper acWrapper)
{
acWrapper.SourceAc.AddLayer(new AnimatorControllerLayer()); // ダミーを末尾に追加。
const int dammy = 1;