[過去ログ]
【ゲームエンジン】Unityなんでも質問スレpart10 (1002レス)
【ゲームエンジン】Unityなんでも質問スレpart10 http://mevius.5ch.net/test/read.cgi/gamedev/1680959709/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
必死チェッカー(本家)
(べ)
自ID
レス栞
あぼーん
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
887: 名前は開発中のものです。 [sage] 2023/07/16(日) 22:19:59.99 ID:7LR0yWqx ParentConstraintコンポーネントのSourcesたちの値をスクリプトから直接書き換えることはできますか? 今は [SerializeField] private ParentConstraint swordParentConstraint; private ConstraintSource constraintSource_0; private ConstraintSource constraintSource_1; private void Start() { constraintSource_0 = swordParentConstraint.GetSource(0); constraintSource_1 = swordParentConstraint.GetSource(1); } public void EquipSword() { constraintSource_0.weight = 0; constraintSource_1.weight = 1; swordParentConstraint.SetSource(0, constraintSource_0); swordParentConstraint.SetSource(1, constraintSource_1); } みたいに書いたところとりあえず意図した動作はするのですが、なんとなく煩雑な気がします http://mevius.5ch.net/test/read.cgi/gamedev/1680959709/887
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.029s