Code:
DynamicBone boneDest=TargetTrans. GameObject. GetComponent
If (boneDest==null)
{
BoneDest=TargetTrans. GameObject. AddComponent
}
Bool succcess=preset. ApplyTo (boneDest);
CodePudding user response:
Problem solved, the problem goes above the presetPreset=new preset (AssetDatabase. LoadAssetAtPath
Preset=AssetDatabase. LoadAssetAtPath