Show / Hide Table of Contents

Class BoxModCollider

ModCollider for BoxColliders.

Inheritance
Object
Element
ModCollider
BoxModCollider
Implements
IValidatable
Inherited Members
ModCollider.Position
ModCollider.Layer
ModCollider.LayerSpecified
ModCollider.Trigger
ModCollider.IgnoreForGhost
Element.Validate()
Element.MissingElement(String, String)
Element.MissingAttribute(String, String)
Element.InvalidData(String, String)
Element.Warn(String, String)
Element.LineNumber
Element.LinePosition
Element.AttributesUsed
Element.ElementsUsed
Element.FileName
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
ModCollider.CreateCollider(Transform)

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
ModCollider.CreateVisual(Transform)

Validate(String)

Declaration
protected override bool Validate(string elemName)
Parameters
Type Name Description
String elemName
Returns
Type Description
Boolean
Overrides
Element.Validate(String)

Implements

IValidatable
Back to top Generated by DocFX