API reference
API reference
Select your platform
No SDKs available
No versions available

RunTimeUtils Class

Static container class of utility methods used at runtime and related to BuildingBlocks.
See the Multiplayer Building Blocks Setup Guide for more information. This class features the RunTimeUtils.GetInterfaceComponent<T> method, which you can use to query for MonoBehaviours on a GameObject that implement a particular namespace.

Static Methods

GenerateRandomString ( size , includeLowercase , includeUppercase , includeNumeric , includeSpecial )
Signature
static string GenerateRandomString(int size, bool includeLowercase=true, bool includeUppercase=true, bool includeNumeric=true, bool includeSpecial=false)
Parameters
size: int
includeLowercase: bool
includeUppercase: bool
includeNumeric: bool
includeSpecial: bool
Returns
string
GetInterfaceComponent< T > ( monoBehaviour )
Returns the first (order not guaranteed) instance of a MonoBehaviour implementing the interface T.
Signature
static T GetInterfaceComponent< T >(this MonoBehaviour monoBehaviour)
Parameters
monoBehaviour: this MonoBehaviour  MonoBehaviour instance, as caller, on whose GameObject the search will occur.
Returns
T  The first instance of T found.