Class SphereModCollider
ModCollider for SphereColliders.
Implements
Inherited Members
Namespace: Modding.Serialization
Assembly: Assembly-CSharp.dll
Syntax
public class SphereModCollider : ModCollider, IValidatable
Constructors
SphereModCollider()
Declaration
public SphereModCollider()
Properties
Radius
Radius of the collider.
Declaration
public float Radius { get; set; }
Property Value
Type | Description |
---|---|
Single |
Methods
CreateCollider(Transform)
Creates a game object with a collider attached, set up according to the ModCollider instance.
Declaration
public override Collider CreateCollider(Transform parent)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | parent | Transform the new object should be a child of. |
Returns
Type | Description |
---|---|
UnityEngine.Collider | The new Collider component. |
Overrides
CreateVisual(Transform)
Creates a debug visual object to represent this collider.
Declaration
public override Transform CreateVisual(Transform parent)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | parent | Transform the new object should be a child of. |
Returns
Type | Description |
---|---|
UnityEngine.Transform | The Transform of the new object. |
Overrides
Validate(String)
Declaration
protected override bool Validate(string elemName)
Parameters
Type | Name | Description |
---|---|---|
String | elemName |
Returns
Type | Description |
---|---|
Boolean |