MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Update

Method Update

Source/Editor/Surface/SurfaceComment.cs:139–160  ·  view source on GitHub ↗

(float deltaTime)

Source from the content-addressed store, hash-verified

137
138 /// <inheritdoc />
139 public override void Update(float deltaTime)
140 {
141 if (_isRenaming)
142 {
143 // Stop renaming when clicking anywhere else
144 if (!_renameTextBox.IsFocused || !RootWindow.IsFocused)
145 {
146 Rename(_renameTextBox.Text);
147 StopRenaming();
148 }
149 }
150 else
151 {
152 // Rename on F2
153 if (IsSelected && Editor.Instance.Options.Options.Input.Rename.Process(this))
154 {
155 StartRenaming();
156 }
157 }
158
159 base.Update(deltaTime);
160 }
161
162 /// <inheritdoc />
163 public override void Draw()

Callers

nothing calls this directly

Calls 1

ProcessMethod · 0.45

Tested by

no test coverage detected