Class BoxModCollider
ModCollider for BoxColliders.
Implements
Inherited Members
Namespace: Modding.Serialization
Assembly: Assembly-CSharp.dll
Syntax
public class BoxModCollider : ModCollider, IValidatable
Constructors
BoxModCollider()
Declaration
public BoxModCollider()
Properties
Rotation
Rotation of the collider object.
Declaration
public Vector3 Rotation { get; }
Property Value
Type | Description |
---|---|
Vector3 |
Scale
Scale of the collider object.
Declaration
public Vector3 Scale { get; }
Property Value
Type | Description |
---|---|
Vector3 |
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 |