[1786] Missing ApplyModifiedChanges() method when modifying VRC Constraint properties via UdonSharp
tracked
よーつーよぼー
According to the official documentation below, ApplyModifiedChanges() must be called after modifying VRC Constraint properties via script to apply the changes:
However, I am encountering a compilation error stating that ApplyModifiedChanges() cannot be found, regardless of whether I call it on the Constraint component itself, the Sources list, or an individual source (e.g., Sources[1]).
I have already included the following namespaces as specified in the documentation:
using VRC.Dynamics;
using VRC.SDK3.Dynamics.Constraint.Components;
I also noticed a similar method called ApplyConfigurationChanges() defined for VRCParentConstraint. I tried using it instead, but it did not seem to reflect the changes.
Could you please clarify where ApplyModifiedChanges() is defined or how to correctly apply property changes via U#?
Environment:
SDK Version: 3.10.1
原文:
UdonSharpからVRC Constraintのプロパティを変更する際、ApplyModifiedChanges() メソッドが見つからない
下記の公式ドキュメントによると、スクリプト経由でVRC Constraintのプロパティを変更した後、変更を適用するために ApplyModifiedChanges() を呼び出す必要があります:
しかし、Constraintコンポーネント自体、Sources リスト、あるいは個別のソース(例: Sources[1])のいずれに対しても、ApplyModifiedChanges() が見つからないというコンパイルエラーが発生します。
ドキュメントの指示通り、以下の名前空間は含めています:
using VRC.Dynamics;
using VRC.SDK3.Dynamics.Constraint.Components;
また、VRCParentConstraint に定義されている ApplyConfigurationChanges() という似た名前のメソッドを見つけたので試してみましたが、変更は反映されませんでした。
ApplyModifiedChanges() がどこに定義されているか、あるいはU#経由で正しくプロパティの変更を適用する方法を教えていただけますでしょうか?
Environment:
SDK Version: 3.10.1
Log In
よーつーよぼー
Update:
After further investigation with the help of experienced developers, I have confirmed that changes to Weight are reflected correctly by modifying them via VRCConstraintSourceKeyableList and then calling ApplyConfigurationChanges() on the Constraint component.
This behavior differs from the official documentation, so please verify this discrepancy.
原文:
有識者に検証いただき、Weightの変更はVRCConstraintSourceKeyableListを介し、また、ConstraintコンポーネントにてApplyConfigurationChanges()を呼ぶことで変更が反映されることを確認しました。
公式ドキュメントの記述とは異なるためご確認をお願いします。
StormRel
marked this post as
tracked