Skip to main content

TransformProxy

A class in Root.Township, the global namespace.

A plain position and rotation, for sending a place over the network (for example where to play particles) without a Transform.

Constructors​

MemberWhat it is
TransformProxy()Creates a TransformProxy from target.
TransformProxy(Vector3 position, Quaternion rotation)Creates a TransformProxy from target.
TransformProxy(Transform target)Creates a TransformProxy from target.

Properties​

MemberWhat it is
Vector3 Position { get; }The world position.
Quaternion Rotation { get; }The world rotation.

Methods​

MemberWhat it is
static void SerializeParticles(Stream stream, ref TransformProxy sync)Reads or writes the position and a compressed rotation. Reading makes a new proxy.

Used in​

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