RuntimeLoaderSection.qml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Copyright (C) 2022 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
  3. import QtQuick 2.15
  4. import QtQuick.Layouts 1.15
  5. import HelperWidgets 2.0
  6. import StudioTheme 1.0 as StudioTheme
  7. Column {
  8. width: parent.width
  9. Section {
  10. width: parent.width
  11. caption: qsTr("Runtime Loader")
  12. SectionLayout {
  13. PropertyLabel {
  14. text: qsTr("Source")
  15. tooltip: qsTr("Sets the URL of the 3D asset to import at runtime.")
  16. }
  17. SecondColumnLayout {
  18. UrlChooser {
  19. backendValue: backendValues.source
  20. filter: "*.*"
  21. }
  22. ExpandingSpacer {}
  23. }
  24. PropertyLabel {
  25. text: qsTr("Instancing")
  26. tooltip: qsTr("If this property is set, the imported model will not be rendered normally. Instead, a number of instances of the model will be rendered, as defined by the instance table.")
  27. }
  28. SecondColumnLayout {
  29. ItemFilterComboBox {
  30. typeFilter: "QtQuick3D.Instancing"
  31. backendValue: backendValues.instancing
  32. implicitWidth: StudioTheme.Values.singleControlColumnWidth
  33. + StudioTheme.Values.actionIndicatorWidth
  34. }
  35. ExpandingSpacer {}
  36. }
  37. }
  38. }
  39. }