Flashes Home Search Notifications Sign in Post
Binary Impact @binaryimpact.de · Nov 26

#UnityTips Debug.Assert expects you to enter a condition and lets you print an error message to the console if the condition you entered returns false. Assertions are often a better choice than a Debug.Log call. #gamedev #indiedev

18 likes 1 replies

?

Replies

GamingGameDev (He/Him) 😷🇵🇸 · Dec 3

You can also declare a static extension method like "Debug.Mandate" that only prints if the condition is true to keep you "if" condition the same.

Legal

Privacy Policy Terms and Conditions

Contact

Support FAQs

Follow

Bluesky Instagram Threads
Flashes for Bluesky Get it on the App Store