QueryStateObject(Type, int)
Get an existing state object from a controlID.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
public static object QueryStateObject(Type t, int controlID)
Parameters
Returns
Type | Description |
|---|---|
| Object |
Remarks
This will return a recycled state object that is unique for controlID. If the state object has not been created by calling GUIUtility.GetStateObject then it cannot be accessed using GUIUtility.QueryStateObject. A call into GUIUtility.QueryStateObject with the state object not created is invalid. A null may be returned, but is not guaranteed. An exception may happen instead.
Additional Resources: GUIUtility.GetStateObject.