Skip to content

Commit

Permalink
增加两个宏替换
Browse files Browse the repository at this point in the history
  • Loading branch information
KumoKyaku committed Sep 15, 2023
1 parent 09857f9 commit 7577916
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ private static void MacroTransform(Transform transform, ref string orignal)
orignal = orignal.Replace("$(localPosition)", transform.localPosition.ToString());
orignal = orignal.Replace("$(localRotation)", transform.localRotation.ToString());
orignal = orignal.Replace("$(localEulerAngles)", transform.localEulerAngles.ToString());


orignal = orignal.Replace("$(localScale)", transform.localScale.ToString());
orignal = orignal.Replace("$(lossyScale)", transform.lossyScale.ToString());

orignal = orignal.Replace("$(parent)", transform.parent?.name);
}

Expand Down

0 comments on commit 7577916

Please sign in to comment.