EditorService

Provides functions related to editor script.

# Methods

[{"index":"void CloneSelectedEntity()","0":"Duplicates the selected entity."}]

[{"index":"void CreateMap(func callback)","0":"Creates a map. The Id of the created map can be received via a callback."}]

[{"index":"void CreateSelectedModel(Vector2 position, boolean select = true)","0":"Creates the selected model at position."}]

[{"index":"void CreateSelectedModel(Vector2 position, func callback, boolean select = true)","0":"Creates the selected model in position."}]

[{"index":"void DataSetInsertRow(string tableName)","0":"Inserts one column into the DataSets corresponding to tableName."}]

[{"index":"void DataSetRemoveRow(string tableName, int32 row)","0":"Removes the column from the DataSets corresponding to tableName."}]

[{"index":"void DataSetSetCell(string tableName, int32 row, string columnName, string value)","0":"Sets the value in the row column of the DataSets corresponding to tableName, the cell in the row columnName."}]

[{"index":"void DeleteLiteDB()","0":"Deletes the world's LiteDB data."}]

[{"index":"void DeleteMap(string mapId)","0":"Deletes the map corresponding to mapId."}]

[{"index":"void GetCameraPosition(func callback)","0":"Gets the position of the camera viewing the editor. The value is received via the callback."}]

[{"index":"void GetCurrentMap(func callback)","0":"Gets the Id of the current map. The value is passed to the callback."}]

[{"index":"void GetMaps(func> callback)","0":"Gets a list of Ids for all maps. The value is passed to the callback."}]

[{"index":"boolean GetModelProperty(string modelId, string componentName, string propertyName, func callback)","0":"Gets the value of the property of the model corresponding to the modelId. The value is passed to the callback. Returns false if it doesn't exist."}]

[{"index":"void LoadMap(string mapId, boolean save)","0":"Loads the map corresponding to mapId. When save is set to true, the current map is saved."}]

[{"index":"void Notification(string notify)","0":"Sets up a notification message."}]

[{"index":"void OpenUrl(string title, string url)","0":"Opens the URL."}]

[{"index":"void RemoveMakerMenu(string name)","0":"Deletes the right Maker menu."}]

[{"index":"void RenameEntity(Entity entity, string name)","0":"Changes the name of the entity."}]

[{"index":"void SaveMap()","0":"Saves the current map."}]

[{"index":"void SaveMyHome(func onComplete)","0":"Take a screenshot and set it as My Home background."}]

[{"index":"void SelectEntity(string entityId)","0":"Selects an entity corresponding to the entityId."}]

[{"index":"void SetCameraPosition(Vector3 position)","0":"Sets the camera location."}]

[{"index":"void SetCameraScrollMode(boolean isCameraScroll)","0":"Sets the operation of the camera's scroll function."}]

[{"index":"void SetCameraZoom(int32 zoom)","0":"Sets the zoom of the Maker camera."}]

[{"index":"boolean SetModelProperty(string modelId, string componentName, string propertyName, string value)","0":"Sets the value of the property of the model corresponding to modelId. Returns false upon failure."}]

[{"index":"void SetSelectedModel(string modelId)","0":"Selects the model with the corresponding modelId."}]

[{"index":"void SetSelectedTile(string tileRUID)","0":"Selects a tile with the specified RUID. If no tile is specified, the tile on the current layer is selected."}]

[{"index":"void SetSiblingIndex(Entity entity, int32 index)","0":"Changes the hierarchical order of entities with the same parent."}]

[{"index":"void SetStartingMap(string mapId)","0":"Sets the map of the corresponding mapId as the starting map."}]

[{"index":"void SetWorkingLayer(int32 layerIndex)","0":"Sets the map layer you are working with as the map layer at its layerIndex."}]

##### inherited from Service:

[{"index":"EventHandlerBase ConnectEvent(string key, IScriptFunction eventHandler)","0":"Links events. When a key-type event occurs in this service, a handler is notified. The handler receives event parameters."}]

[{"index":"EventHandlerBase ConnectEvent(Type eventType, IScriptFunction eventHandler)","0":"Links events. This service notifies a handler when an eventType event occurs. The handler receives event parameters."}]

[{"index":"boolean DisconnectEvent(string key, EventHandlerBase eventHandler)","0":"Disconnects the event with the key-type event and the handler."}]

[{"index":"boolean DisconnectEvent(Type eventType, EventHandlerBase eventHandler)","0":"Disconnects the eventType event from its handler."}]

[{"index":"void SendEvent(EventType sendEvent)","0":"Generates an event."}]

# Events

[{"index":"EnterEditorEvent","0":"The editor event occurs when entering the Editor."}]

[{"index":"EnterPlayEvent","0":"This event occurs when entering play mode."}]

[{"index":"EntityCreateEditorEvent","0":"Editor event which takes place upon creation of an entity."}]

[{"index":"EntityDeleteEditorEvent","0":"Editor event which takes place when deleting an entity."}]

[{"index":"EntityDeselectEditorEvent","0":"Editor event which takes place when deselecting an entity."}]

[{"index":"EntitySelectEditorEvent","0":"The editor event occurs when selecting an entity."}]

[{"index":"ScreenTouchEditorEvent","0":"This event occurs when touching the screen or clicking into the editor mode."}]

[{"index":"ScreenTouchHoldEditorEvent","0":"This event occurs while touching the screen or clicking into the editor mode."}]

[{"index":"ScreenTouchReleaseEditorEvent","0":"This event occurs while touching\/holding the screen or clicking\/holding in the editor mode."}]

[{"index":"WorldLoadEditorEvent","0":"The editor event occurs when entering the Editor."}]