Class OnParticleCollision
Called when a particle hits a collider.
Inheritance
OnParticleCollision
Implements
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Flow.dll
Syntax
[UnitCategory("Events/Physics")]
public sealed class OnParticleCollision : GameObjectEventUnit<GameObject>, IGraphElementWithData, IGraphEventHandler<GameObject>, IGameObjectEventUnit, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IAnalyticsIdentifiable, IGraphEventListener
Properties
MessageListenerType
Declaration
public override Type MessageListenerType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
collisionEvents
The particle collision events.
Declaration
[DoNotSerialize]
public ValueOutput collisionEvents { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
hookName
Declaration
protected override string hookName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
other
A game object with an attached collider struck by the particle system.
Declaration
[DoNotSerialize]
public ValueOutput other { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
AssignArguments(Flow, GameObject)
Declaration
protected override void AssignArguments(Flow flow, GameObject other)
Parameters
Type | Name | Description |
---|---|---|
Flow | flow | |
GameObject | other |
Overrides
Definition()
Declaration
protected override void Definition()