API ReferenceEditor.MapDoc

MapInstanceclass

A map node which allows a target group and its children to be placed with a new position and orientation in the world without creating a new copy. Multiple MapInstance classes may reference the same target allowing it to be placed in multiple locations, but allowing any edits to be applied to all instances.

object→MapNode→MapInstance
Namespace
Editor.MapDoc
Assembly
Sandbox.Tools
Declaration
public sealed class Editor.MapDoc.MapInstance : Editor.MapDoc.MapNode

Constructors1

Showing 1 constructors

public MapInstance(Editor.MapDoc.MapDocument mapDocument = null)PUBLICCONSTRUCTOR

ParameterTypeDescription
mapDocument = nullMapDocument—

Properties2

Showing 2 properties

public Editor.MapDoc.MapNode Editor.MapDoc.MapInstance.Target { get; set; }PUBLICGETSET

The target map node this MapInstance references to copy.

Returns:MapNode—

public string Editor.MapDoc.MapInstance.TargetMapPath { get; set; }PUBLICGETSET

For a prefab, the map file it places, like "maps/prefabs/door.vmap". Null for an instance of a group in the same map.

Returns:string—

On this page