Update to include presenter context.

This commit is contained in:
Chandler Cox
2025-02-16 18:05:25 -06:00
parent e4d2e429a0
commit 25b8939aff
2 changed files with 31 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ public struct ControlReference<T> : IControlReference where T : Control
return t;
else
{
Debug.LogWarning("Trying to get Control from ControlReference but UIControl is null, or UIControl.Control is null, or UIControl.Control is not the correct type.");
Debug.Write(LogType.Warning, "Trying to get Control from ControlReference but UIControl is null, or UIControl.Control is null, or UIControl.Control is not the correct type.");
return null;
}
}
@@ -84,7 +84,7 @@ public struct ControlReference<T> : IControlReference where T : Control
if (uiControl.Control is T castedControl)
_uiControl = uiControl;
else
Debug.LogWarning("Trying to set ControlReference but UIControl.Control is null or UIControl.Control is not the correct type.");
Debug.Write(LogType.Warning, "Trying to set ControlReference but UIControl.Control is null or UIControl.Control is not the correct type.");
}
/// <summary>