Skip to main content

DockPositioning

A delegate in Root.Township, Alta.Inventory.

Override for where a docked pickup sits: fills in local position, rotation and scale, returning false if it can't place it. Set through PickupDock.OverridePositioning.

Constructors​

MemberWhat it is
DockPositioning(object object, IntPtr method)Made by the compiler when you assign a method to this delegate; you don't call it directly.

Methods​

MemberWhat it is
virtual IAsyncResult BeginInvoke(PickupDock dock, Item item, Pickup pickup, bool isScaling, out Vector3 position, out Quaternion rotation, out Vector3 scale, AsyncCallback callback, object object)Starts the call on another thread; not supported in Unity, so use Invoke.
virtual bool EndInvoke(out Vector3 position, out Quaternion rotation, out Vector3 scale, IAsyncResult result)Waits for a call started with BeginInvoke; not supported in Unity.
virtual bool Invoke(PickupDock dock, Item item, Pickup pickup, bool isScaling, out Vector3 position, out Quaternion rotation, out Vector3 scale)Calls every method on this delegate with these arguments.

Used in​

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