MessageBusGameObjectExtensions GetSubscriber Method DH.Messaging Documentation

[This is preliminary documentation and is subject to change.]

Returns the MessageBusSubscriber component if it exists for this GameObject, null if it doesn't.

Namespace: (Default Namespace)
Assembly: DH.Messaging.Extensions (in DH.Messaging.Extensions.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static MessageBusSubscriber GetSubscriber(
	this GameObject gameObject
)

Parameters

gameObject
Type: GameObject
GameObject reference object.

Return Value

Type: MessageBusSubscriber
MessageBusSubscriber Component

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type GameObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also