Skip to main content

CreateMarker

Creates a marker.

{{#tag:pre|Marker 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]);}}

  • 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.

<!-- -->

  • Marker: Returns the marker.

&#123;&#123;#tag:syntaxhighlight| Marker.CreateMarker(0, new Vector3(0, 100, 0), new Vector3(), new Vector3(), 4f, Color.Red); |lang=csharp&#125;&#125; &#125;&#125;