Method GetComponentInActiveScene
GetComponentInActiveScene<T>()
Retrieves the first component of the given type in the active scene
Declaration
public static T GetComponentInActiveScene<T>() where T : Component
Returns
Type | Description |
---|---|
T | The first component found in the active scene, or null if none exists |
Type Parameters
Name | Description |
---|---|
T | The type of component to retrieve |