Skip to main content

ImpactTool.OnGeneratedHit

A delegate in Root.Township, Alta.Impact.

Callback for an ImpactTool hit or block, given the hit and the tool. Used by OnHit, OnBlocked and the static OnHitAny.

Constructors​

MemberWhat it is
OnGeneratedHit(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(ImpactHitWithTool hit, ImpactTool tool, AsyncCallback callback, object object)Starts the call on another thread; not supported in Unity, so use Invoke.
virtual void EndInvoke(IAsyncResult result)Waits for a call started with BeginInvoke; not supported in Unity.
virtual void Invoke(ImpactHitWithTool hit, ImpactTool tool)Calls every method on this delegate with these arguments.

Used in​

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