MeshesCreateCylinder Method |
Creates a cylinder.
Namespace:
KSPDev.ModelUtils
Assembly:
KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntax public static GameObject CreateCylinder(
float diameter,
float length,
Material material,
Transform parent,
CollidersPrimitiveCollider colliderType = CollidersPrimitiveCollider.None
)
Request Example
View SourceParameters
- diameter
- Type: SystemSingle
XY of the cylinder. - length
- Type: SystemSingle
Z-axis of the cylinder. - material
- Type: UnityEngineMaterial
Material for the primitive. - parent
- Type: UnityEngineTransform
Parent transform to attach primitive to. - colliderType (Optional)
- Type: KSPDev.ModelUtilsCollidersPrimitiveCollider
Type of the collider to create on the primitive.
Return Value
Type:
GameObjectCylinder game object.
See Also