Skip to main content

PrefabSpawnPosition

A class in Root.Township, Alta.Carpentry.

A prefab and the local position and rotation to spawn it at. Used for the pieces a TimberBlock spawns as its crafted result.

Constructors​

MemberWhat it is
PrefabSpawnPosition()Creates a PrefabSpawnPosition with default values.

Fields​

3 private and internal fields
MemberWhat it is
private Vector3 positionBacking field for Position.
private uint prefabHashBacking field for PrefabHash.
private Quaternion rotationBacking field for Rotation.

Properties​

MemberWhat it is
Vector3 Position { get; }Local position relative to the spawn point.
uint PrefabHash { get; }Hash of the network prefab to spawn.
Quaternion Rotation { get; }Local rotation relative to the spawn point.

Used in​

Members of other types that take, return or hold a PrefabSpawnPosition: