GetComponent<T>()
Returns a component of type T. For PlayerSettings, returns the global fallback if no PlayerSettings component is found. Returns null if the component isn't available.
Read time 1 minuteLast updated 14 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Build.Profile
- Assembly: UnityEditor.CoreModule
public T GetComponent<T>() where T : Object
Returns
Type | Description |
|---|---|
| T | A component of type |
Remarks
For BuildProfilePlayerSettings, returns if the build profile uses the global Player settings. To get the Player settings that apply in either case, call this method with PlayerSettings as .
nullTNote: This method is restricted to ScriptableObject types, PlayerSettings, and BuildProfilePlayerSettings.