![]() ![]() The updateSource argument will tell you *how* the script is being run. There's now a new argument on the Main method. This is useful when you want a one-shot update on the next tick, like initialization code or a function that should only run when triggered by an outside event. After this update, the Once flag is removed. This is a special flag which schedules your script for one bonus update on the next game tick. Of course, you can also do straight assignment as in the example constructor, if you want to completely overwrite the value, for instance if you want to stop all updating, you can assign Runtime.UpdateFrequency = UpdateFrequency.None which will remove all flags, and stop any future updating.Īlso of note is the UpdateFrequency.Once value. That should cover the basics of adding and removing flags from an enum. Runtime.UpdateFrequency &= ~UpdateFrequency.Update10 Runtime.UpdateFrequency |= UpdateFrequency.Update100 ![]() ![]() Runtime.UpdateFrequency = UpdateFrequency.Update1 | UpdateFrequency.Update10 ![]()
0 Comments
Leave a Reply. |