Nebula
Containers

InstanceTemplate

Reusable geometry and container bounds for a private area.

generated from the sources
[CreateAssetMenu(menuName = "Nebula/Instance Template")]
public sealed class InstanceTemplate : ScriptableObject

Reusable geometry and container bounds for a private area. Bounds are relative to the instance origin.

Fields

TemplateId

public string TemplateId = "interior";

Stable layout identifier combined with the game-selected instance key to derive a private scope.

Parts

public Part[] Parts =
{
    new Part()
};

Containers in the layout. A portal uses the first part as its entry destination.

Nested types

Part

[Serializable]
public sealed class Part

One static runtime container in the instance layout.

Fields

Id
public string Id = "interior";

Nonempty identifier unique within the template. Participates in the stable runtime container ID.

Bounds
public Bounds Bounds = new Bounds(Vector3.zero, new Vector3(20, 10, 20));

Positive-size, axis-aligned bounds relative to the instance origin.

ContentResource
public string ContentResource = "";

Static prefab path under Resources, without an extension. Empty means no static content. Content must contain no NetworkIdentity components.

On this page