Class BoxComponent
A box generally used for simple collision. Bounds are rendered as lines in the editor.
Inheritance
System.Object
BoxComponent
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.Engine
Assembly: UE4DotNet.dll
Syntax
public class BoxComponent : ShapeComponent
Properties
| Improve this Doc View SourceBoxExtent
The extents (radii dimensions) of the box *
Declaration
public Vector BoxExtent { get; }
Property Value
Type | Description |
---|---|
Vector |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static BoxComponent DefaultObject { get; }
Property Value
Type | Description |
---|---|
BoxComponent |
LineThickness
Used to control the line thickness when rendering
Declaration
public float LineThickness { get; }
Property Value
Type | Description |
---|---|
System.Single |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceGetScaledBoxExtent()
@return the box extent, scaled by the component scale.
Declaration
public Vector GetScaledBoxExtent()
Returns
Type | Description |
---|---|
Vector |
GetUnscaledBoxExtent()
@return the box extent, ignoring component scale.
Declaration
public Vector GetUnscaledBoxExtent()
Returns
Type | Description |
---|---|
Vector |
New(UObject, Name)
Spawn an object of this class
Declaration
public static BoxComponent New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
BoxComponent |
SetBoxExtent(Vector, Boolean)
Change the box extent size.
Declaration
public void SetBoxExtent(Vector InBoxExtent, bool bUpdateOverlaps)
Parameters
Type | Name | Description |
---|---|---|
Vector | InBoxExtent | |
System.Boolean | bUpdateOverlaps |
Remarks
This is the unscaled size, before component scale is applied. @param InBoxExtent: new extent (radius) for the box. @param bUpdateOverlaps: if true and this shape is registered and collides, updates touching array for owner actor.
Operators
| Improve this Doc View SourceImplicit(IntPtr to BoxComponent)
Convert from IntPtr to UObject
Declaration
public static implicit operator BoxComponent(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
BoxComponent |