This commit is contained in:
CortexCore
2023-11-15 23:54:54 +08:00
parent ee3ecec6cb
commit 3c837a4a33
356 changed files with 73756 additions and 26493 deletions

View File

@@ -16,7 +16,7 @@ namespace BITKit
if (!constraint)
{
if (!parentSource) return null;
constraint = target.gameObject.AddComponent<ParentConstraint>();
constraint = target.gameObject.GetOrAddComponent<ParentConstraint>();
}
// 清空已有约束