Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 994 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 994 Bytes

Unity GC Tests

A group of unity3d unit tests for checking if some methods are "GC Free"

WARNING: the GC behaviours on different versions of Unity might differ, the pics at the bottom shows the result of Unity2023.1 + Mono

How to install

Method 1 : Download the whole git contents into your Assets/Editor directory;

Method 2 : If your project is git-ed, then you can add this git as a submodule under Assets/Editor directory;

How to use

  • Open the Test Runner located at Unity editor's (Window/Test Runner) Menu, select EditMode tab
  • Double-Click "GCTests" item to run the unit tests
  • All unit tests with "OK" prefix means the method used in the test are "GC Free", those with "BAD" prefix are not
  • All unit tests are supposed to pass, if any of them fails, it means the original GC results have changed
  • You're welcome to add new unit tests :D

GCTests1 GCTests2