example.collection 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. name: "example"
  2. scale_along_z: 0
  3. embedded_instances {
  4. id: "floor"
  5. data: "embedded_components {\n"
  6. " id: \"model\"\n"
  7. " type: \"model\"\n"
  8. " data: \"mesh: \\\"/assets/models/floor_tile_large.gltf.glb\\\"\\n"
  9. "name: \\\"{{NAME}}\\\"\\n"
  10. "materials {\\n"
  11. " name: \\\"texture\\\"\\n"
  12. " material: \\\"/builtins/materials/model.material\\\"\\n"
  13. " textures {\\n"
  14. " sampler: \\\"tex0\\\"\\n"
  15. " texture: \\\"/assets/models/dungeon_texture.png\\\"\\n"
  16. " }\\n"
  17. "}\\n"
  18. "\"\n"
  19. "}\n"
  20. ""
  21. }
  22. embedded_instances {
  23. id: "wall"
  24. data: "embedded_components {\n"
  25. " id: \"model\"\n"
  26. " type: \"model\"\n"
  27. " data: \"mesh: \\\"/assets/models/wall.gltf.glb\\\"\\n"
  28. "name: \\\"{{NAME}}\\\"\\n"
  29. "materials {\\n"
  30. " name: \\\"texture\\\"\\n"
  31. " material: \\\"/builtins/materials/model.material\\\"\\n"
  32. " textures {\\n"
  33. " sampler: \\\"tex0\\\"\\n"
  34. " texture: \\\"/assets/models/dungeon_texture.png\\\"\\n"
  35. " }\\n"
  36. "}\\n"
  37. "\"\n"
  38. "}\n"
  39. ""
  40. position {
  41. z: -2.0
  42. }
  43. }
  44. embedded_instances {
  45. id: "player"
  46. children: "camera"
  47. data: "components {\n"
  48. " id: \"player\"\n"
  49. " component: \"/example/player.script\"\n"
  50. "}\n"
  51. "embedded_components {\n"
  52. " id: \"model\"\n"
  53. " type: \"model\"\n"
  54. " data: \"mesh: \\\"/assets/models/Knight.glb\\\"\\n"
  55. "skeleton: \\\"/assets/models/Knight.glb\\\"\\n"
  56. "animations: \\\"/assets/models/Knight.glb\\\"\\n"
  57. "default_animation: \\\"T-Pose\\\"\\n"
  58. "name: \\\"{{NAME}}\\\"\\n"
  59. "materials {\\n"
  60. " name: \\\"knight_texture\\\"\\n"
  61. " material: \\\"/builtins/materials/model_skinned.material\\\"\\n"
  62. " textures {\\n"
  63. " sampler: \\\"tex0\\\"\\n"
  64. " texture: \\\"/assets/models/knight_texture.png\\\"\\n"
  65. " }\\n"
  66. "}\\n"
  67. "materials {\\n"
  68. " name: \\\"knight_texture_no_skin\\\"\\n"
  69. " material: \\\"/builtins/materials/model.material\\\"\\n"
  70. " textures {\\n"
  71. " sampler: \\\"tex0\\\"\\n"
  72. " texture: \\\"/assets/models/knight_texture.png\\\"\\n"
  73. " }\\n"
  74. "}\\n"
  75. "\"\n"
  76. "}\n"
  77. ""
  78. }
  79. embedded_instances {
  80. id: "camera"
  81. children: "instructions"
  82. data: "components {\n"
  83. " id: \"orbit_camera\"\n"
  84. " component: \"/example/orbit_camera.script\"\n"
  85. " properties {\n"
  86. " id: \"zoom\"\n"
  87. " value: \"13.0\"\n"
  88. " type: PROPERTY_TYPE_NUMBER\n"
  89. " }\n"
  90. "}\n"
  91. "embedded_components {\n"
  92. " id: \"camera\"\n"
  93. " type: \"camera\"\n"
  94. " data: \"aspect_ratio: 1.0\\n"
  95. "fov: 0.7854\\n"
  96. "near_z: 0.1\\n"
  97. "far_z: 1000.0\\n"
  98. "auto_aspect_ratio: 1\\n"
  99. "\"\n"
  100. "}\n"
  101. ""
  102. position {
  103. y: 5.0
  104. z: 8.0
  105. }
  106. rotation {
  107. x: -0.21643962
  108. w: 0.976296
  109. }
  110. }
  111. embedded_instances {
  112. id: "instructions"
  113. data: "embedded_components {\n"
  114. " id: \"label\"\n"
  115. " type: \"label\"\n"
  116. " data: \"size {\\n"
  117. " x: 128.0\\n"
  118. " y: 32.0\\n"
  119. "}\\n"
  120. "text: \\\"1-5 to play animations\\\"\\n"
  121. "font: \\\"/assets/text48.font\\\"\\n"
  122. "material: \\\"/builtins/fonts/label.material\\\"\\n"
  123. "\"\n"
  124. "}\n"
  125. ""
  126. position {
  127. y: -3.930587
  128. z: -12.866642
  129. }
  130. scale3 {
  131. x: 0.01
  132. y: 0.01
  133. z: 0.01
  134. }
  135. }