Magneticfieldcomponent

MagneticFieldComponent class

A component to display magnetic field like effect in the game.

See MagneticFieldComponentData for the data specification to create a magnetic field component.

Signature:

export declare class MagneticFieldComponent extends Component3D<MagneticFieldComponentData> 

Extends: Component3D<MagneticFieldComponentData>

Remarks

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the MagneticFieldComponent class.

Properties

PropertyModifiersTypeDescription
colornumberGet the color of the magnetic field.
radiusnumberGet the radius of the magnetic field.