GetActiveComponent<T>()
Returns a component of type T from the active build profile. 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 8 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Build.Profile
- Assembly: UnityEditor.CoreModule
public static T GetActiveComponent<T>() where T : Object
Returns
Type | Description |
|---|---|
| T | Settings component type to fetch. Expects a ScriptableObject implementation or PlayerSettings. |
Remarks
Note: This function is restricted to ScriptableObject types or PlayerSettings.