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