Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit 94a339b

Browse files
authored
Merge pull request #250 from Unity-Technologies/fix_alignment_issue
expose onUpdate to editor panel
2 parents 9431aa7 + dc02c91 commit 94a339b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

com.unity.uiwidgets/Editor/UIWidgetsEditorPanel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ float _currentDevicePixelRatio {
3030
return devicePixelRatioEditorOnlyOverride ?? EditorGUIUtility.pixelsPerPoint; }
3131
}
3232

33+
protected virtual void OnUpdate() {
34+
35+
}
36+
3337
void Update() {
38+
OnUpdate();
3439
_wrapper.onEditorUpdate();
3540
}
3641

0 commit comments

Comments
 (0)