Hyluss

Undo.RecordObject

Dec 23rd, 2021
1,504
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1. private void ResetDamage()
  2.     {
  3.         UnityEditor.Undo.RecordObject(this, "damage reset");
  4.         damage = 1;
  5.     }
  6.  
  7.  
  8. https://docs.unity3d.com/ScriptReference/Undo.RecordObject.html
  9.  
  10.  
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment