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

Method OnMouseDoubleClick

Source/Editor/GUI/AssetPicker.cs:340–352  ·  view source on GitHub ↗

(Float2 location, MouseButton button)

Source from the content-addressed store, hash-verified

338
339 /// <inheritdoc />
340 public override bool OnMouseDoubleClick(Float2 location, MouseButton button)
341 {
342 Focus();
343
344 if (Validator.SelectedItem != null && IconRect.Contains(location))
345 {
346 // Open it
347 Editor.Instance.ContentEditing.Open(Validator.SelectedItem);
348 }
349
350 // Handled
351 return true;
352 }
353
354 /// <inheritdoc />
355 public override DragDropEffect OnDragEnter(ref Float2 location, DragData data)

Callers

nothing calls this directly

Calls 3

FocusFunction · 0.85
ContainsMethod · 0.45
OpenMethod · 0.45

Tested by

no test coverage detected