Skip to main content

GetSizeTest

A class in Root.Township, the global namespace.

Editor test helper that shows the size of this object's mesh bounds in the inspector.

Constructors​

MemberWhat it is
GetSizeTest()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

4 private and internal fields
MemberWhat it is
private bool dojInspector button that runs GetWidth.
private string xBounds width, as text.
private string yBounds height, as text.
private string zBounds depth, as text.

Methods​

MemberWhat it is
void GetWidth()Writes the mesh bounds size on each axis into x, y and z.