public QuadTree(QuadPlane _owner, QuadTree _parent, int _level, Vector2 _offset) { owner = _owner; parent = _parent; level = _level; offset = _offset; scale = 1 / Mathf.Pow(2, level); meshData = MeshGenerator.GeneratePlane(owner.size, owner.radius, scale, offset); }
public override void OnInspectorGUI() { DrawDefaultInspector(); QuadPlane plane = (QuadPlane)target; }