mirror of
https://github.com/originalnicodr/CinematicUnityExplorer.git
synced 2026-10-11 09:58:02 +08:00
Cleanup and simplify highlight process, reduce string alloc
This commit is contained in:
1 parent
1d24af5666
commit
cef4c2f3fb
4 files changed
+349
-333
No files matched your search
@@ -30,8 +30,8 @@ namespace UnityExplorer.UI
|
||||
set => InputField.text = value;
|
||||
}
|
||||
|
||||
public bool ReachedMaxVerts => TextGenerator.vertexCount >= UIManager.MAX_TEXT_VERTS;
|
||||
public TextGenerator TextGenerator => InputField.cachedInputTextGenerator;
|
||||
public bool ReachedMaxVerts => TextGenerator.vertexCount >= UIManager.MAX_TEXT_VERTS;
|
||||
|
||||
private bool updatedWanted;
|
||||
|
||||
@@ -44,7 +44,6 @@ namespace UnityExplorer.UI
|
||||
{
|
||||
if (updatedWanted)
|
||||
{
|
||||
//LayoutRebuilder.ForceRebuildLayoutImmediate(Rect);
|
||||
LayoutRebuilder.MarkLayoutForRebuild(Rect);
|
||||
|
||||
OnValueChanged?.Invoke(InputField.text);
|
||||
|
||||
Reference in new issue
Block a user