Luaプロパティ設定
dx12_set_lua_propertyModify a single LuaScript property (declared in properties) by entity id or name. If playing, the script reloads instantly; otherwise, changes apply on next play.
Instructions
LuaScript のプロパティを1つ書き換える(スクリプトの properties 宣言にあるものだけ)。type に応じて value は number/bool/string/[x,y,z]。Playing 中なら即再注入(スクリプト再ロード=OnStart 再実行)、Editor 中は保存だけで次 Play から反映。entity(id) か name 指定。型が不安なら先に dx12_get_lua_component_state で確認。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | プロパティ名(スクリプトの properties に宣言済みのもの)。 | |
| name | No | エンティティ名(完全一致)。id の代わりに使える。Stop 後など id が変わる場面で安定。 | |
| value | No | 値。型はプロパティに合わせる: number / bool / string / [x,y,z](vec3,color)。 | |
| entity | No | エンティティ id(int)。name と排他。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | エンジンからの生の結果。実際の形は各ツールの説明 / dx12_describe_components を参照。text にも同内容を JSON 文字列で格納。 |