Containers
InstanceTemplate
Reusable geometry and container bounds for a private area.
generated from the sources
Class in namespace
Nebula · Packages/com.1by3.nebula/Runtime/Containers/InstanceTemplate.cs[CreateAssetMenu(menuName = "Nebula/Instance Template")]
public sealed class InstanceTemplate : ScriptableObjectReusable 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 PartOne 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.