CreateMarker
Creates a marker.
C# Syntax
Marker NAPI.Marker.CreateMarker(MarkerType/int/uint markerType, Vector3 pos, Vector3 dir, Vector3 rot, float scale, Color color, [bool bobUpAndDown = false, uint dimension = uint.MaxValue]);
Marker NAPI.Marker.CreateMarker(int markerType, Vector3 pos, Vector3 dir, Vector3 rot, float scale, int red, int green, int blue, [bool bobUpAndDown = false, uint dimension = uint.MaxValue]);
Parameters
- markerType: Parameter input should be in MarkerType, int or uint type.
- pos: Parameter input should be in Vector3 type.
- dir: Parameter input should be in Vector3 type.
- rot: Parameter input should be in Vector3 type.
- scale: Parameter input should be in float type.
- color: Parameter input should be in Color type.
- red: Parameter input should be in int type.
- green: Parameter input should be in int type.
- blue: Parameter input should be in int type.
Optional:
- bobUpAndDown: Parameter input should be in bobUpAndDown type.
- dimension: Parameter input should be in uint type.
Returns
- Marker: Returns the marker.
Example
NAPI.Marker.CreateMarker(0, new Vector3(0, 100, 0), new Vector3(), new Vector3(), 4f, Color.Red);