Class OnParticleCollision
Called when a particle hits a collider.
Inheritance
OnParticleCollision
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitCategory("Events/Physics")]
public sealed class OnParticleCollision : GameObjectEventUnit<GameObject>, IGraphElementWithData, IGraphEventHandler<GameObject>, IGameObjectEventUnit, IEventUnit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable, IGraphEventListener
Properties
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
Unity.VisualScripting.GameObjectEventUnit<UnityEngine.GameObject>.hookName
MessageListenerType
Declaration
public override Type MessageListenerType { get; }
Property Value
Type | Description |
---|---|
Type |
Overrides
Unity.VisualScripting.GameObjectEventUnit<UnityEngine.GameObject>.MessageListenerType
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
Unity.VisualScripting.EventUnit<UnityEngine.GameObject>.AssignArguments(Unity.VisualScripting.Flow, UnityEngine.GameObject)
Definition()
Declaration
protected override void Definition()
Overrides
Unity.VisualScripting.GameObjectEventUnit<UnityEngine.GameObject>.Definition()