eDriven Framework API
ReferenceScript<(Of <(<'T>)>)> Method (gameObjectName)
Namespaces ► eDriven.Core.Util ► ComponentUtil ► ReferenceScript<(Of <<'(T>)>>)(String)
eDriven Framework API
References the component of a particular type on a game object, which is looked up by name
Declaration Syntax

C# | Visual Basic | Visual C++

    public static T ReferenceScript<T>(
    	string gameObjectName
    )
    where T : Component

    Public Shared Function ReferenceScript(Of T As Component) ( _
    	gameObjectName As String _
    ) As T

    public:
    generic<typename T>
    where T : Component
    static T ReferenceScript(
    	String^ gameObjectName
    )

Generic Template Parameters

T
  Script type

Parameters

gameObjectName (String)
  Game object name

Return Value

Assembly: eDriven.Core (Module: eDriven.Core) Version: 2.0.1.0 (2.0.1.0)