Skip to content

External API

Christian Bronk edited this page Aug 10, 2018 · 7 revisions

The following calls are added to the API class, that will not change in the future:

the API is here: API.cs

  • public static string SpawnObject(string modelName)

Spawns a static object with the disiret model-name and starts the editor. The static is stored in the savegame. Returns the unique identifier of the static

  • public static void RemoveStatic(string uuid)

Destroys the static with the given uuid.

  • public static void HighLightStatic(string uuid, Color color)

Taints the static idientified by its uuid with a color. Use Color.clear to remove the taint.

  • public static string GetModelTitel(string uuid)

Returns the human readable model titel for a static. Usable for displaying a list of statics.

  • public static void SetEditorRange(float newRange)

Sets the maximum placement range of the reduced set statics editor, which is callable through the API (SpawnObject)

  • public static GameObject GetGameObject(string uuid) (>=v1.4.5.2)

Returns the GameObject of the static with the specified uuid