Skip to main content

SAMeshColliderBuilder

A class in Root.Township, the global namespace.

Editor component from the SA Collider Builder tool that builds mesh colliders for its object. The properties are shortcuts into meshColliderBuilderProperty.

Constructors​

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

Fields​

MemberWhat it is
bool cleanupModifiedEditor state flag, not serialized.
SAMeshColliderCommon.SAMeshColliderBuilderProperty edittingMeshColliderBuilderPropertyThe copy of the settings being edited in the inspector. Not serialized.
bool isDebugEditor debug flag, not serialized.
SAMeshColliderCommon.SAMeshColliderBuilderProperty meshColliderBuilderPropertyAll builder settings: split, reducer, collider and rigidbody.

Properties​

MemberWhat it is
SAColliderBuilderCommon.ColliderProperty colliderProperty { get; }Collider settings from the builder property, or null.
SAColliderBuilderCommon.ReducerProperty reducerProperty { get; }Polygon reduction settings, or null.
SAColliderBuilderCommon.RigidbodyProperty rigidbodyProperty { get; }Rigidbody settings, or null.
bool splitMaterialEnabled { get; }Whether colliders are split per material.
float splitPolygonNormalAngle { get; }Normal angle used when splitting by polygon normal.
bool splitPolygonNormalEnabled { get; }Whether colliders are split by polygon normal.
bool splitPrimitiveEnabled { get; }Whether colliders are split per primitive.
SAMeshColliderCommon.SplitProperty splitProperty { get; }Split settings, or null.