Skip to main content

SAColliderBuilderCommon.ReducerProperty

A class in Root.Township, the global namespace.

Mesh reduction settings for the third-party SA Collider Builder editor tool (how a mesh is simplified into colliders). Editor-time data.

Constructors​

MemberWhat it is
ReducerProperty()Creates a SAColliderBuilderCommon.ReducerProperty with default values.

Fields​

MemberWhat it is
SAColliderBuilderCommon.ColliderToChild colliderToChildWhether colliders go on a child object (auto, on or off).
SAColliderBuilderCommon.FitType fitTypeHow the shape fits the mesh.
int maxTrianglesTriangle limit for generated mesh colliders (255 by default).
SAColliderBuilderCommon.MeshType meshTypeMesh collider kind: raw, convex boxes or convex hull and so on.
Vector3 minThicknessSmallest thickness per axis for generated shapes.
SAColliderBuilderCommon.ElementType minThicknessElementTypeWhich axes minThickness applies to.
Vector3 offsetOffset added to the generated shape.
SAColliderBuilderCommon.Bool3 optimizeRotationPer axis, whether the shape's rotation is optimised to fit.
SAColliderBuilderCommon.ElementType optimizeRotationElementTypeWhich axes optimizeRotation applies to.
Vector3 scaleScale applied to the generated shape.
SAColliderBuilderCommon.ElementType scaleElementTypeWhich axes scale applies to.
SAColliderBuilderCommon.ShapeType shapeTypeCollider shape to build: none, mesh, box or capsule and so on.
SAColliderBuilderCommon.SliceMode sliceModeAxis to slice along, or auto.
Vector3 thicknessAExtra thickness on one side.
Vector3 thicknessBExtra thickness on the other side.
bool viewAdvancedEditor flag to show advanced options.

Methods​

MemberWhat it is
SAColliderBuilderCommon.ReducerProperty ShallowCopy()Returns a member-by-member copy.

Used in​

Members of other types that take, return or hold a ReducerProperty: