Beispiel #1
0
 static public void SetDimension(this MeshFilter item, Axis axis, float length)
 {
     item.SetSize(item.GetSize().GetWith(axis, length));
 }
Beispiel #2
0
 static public void SetDepth(this MeshFilter item, float depth)
 {
     item.SetSize(item.GetSize().GetWithZ(depth));
 }
Beispiel #3
0
 static public void SetWidth(this MeshFilter item, float width)
 {
     item.SetSize(item.GetSize().GetWithX(width));
 }
Beispiel #4
0
 static public void SetHeight(this MeshFilter item, float height)
 {
     item.SetSize(item.GetSize().GetWithY(height));
 }
Beispiel #5
0
        //TODO: Make this work for arbitrary origin meshes

        static public void SetBounds(this MeshFilter item, Bounds bounds)
        {
            item.SetSize(bounds.size);
            item.SetSpacarPosition(bounds.center);
        }