New Button.prefab 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. [
  2. {
  3. "__type__": "cc.Prefab",
  4. "_name": "",
  5. "_objFlags": 0,
  6. "_native": "",
  7. "data": {
  8. "__id__": 1
  9. },
  10. "optimizationPolicy": 0,
  11. "asyncLoadAssets": false,
  12. "readonly": false
  13. },
  14. {
  15. "__type__": "cc.Node",
  16. "_name": "New Button",
  17. "_objFlags": 0,
  18. "_parent": null,
  19. "_children": [],
  20. "_active": true,
  21. "_components": [
  22. {
  23. "__id__": 2
  24. },
  25. {
  26. "__id__": 3
  27. }
  28. ],
  29. "_prefab": {
  30. "__id__": 4
  31. },
  32. "_opacity": 255,
  33. "_color": {
  34. "__type__": "cc.Color",
  35. "r": 255,
  36. "g": 255,
  37. "b": 255,
  38. "a": 255
  39. },
  40. "_contentSize": {
  41. "__type__": "cc.Size",
  42. "width": 40,
  43. "height": 40
  44. },
  45. "_anchorPoint": {
  46. "__type__": "cc.Vec2",
  47. "x": 0.5,
  48. "y": 0.5
  49. },
  50. "_trs": {
  51. "__type__": "TypedArray",
  52. "ctor": "Float64Array",
  53. "array": [
  54. 0,
  55. 0,
  56. 0,
  57. 0,
  58. 0,
  59. 0,
  60. 1,
  61. 1,
  62. 1,
  63. 0
  64. ]
  65. },
  66. "_eulerAngles": {
  67. "__type__": "cc.Vec3",
  68. "x": 0,
  69. "y": 0,
  70. "z": 0
  71. },
  72. "_skewX": 0,
  73. "_skewY": 0,
  74. "_is3DNode": false,
  75. "_groupIndex": 0,
  76. "groupIndex": 0,
  77. "_id": ""
  78. },
  79. {
  80. "__type__": "cc.Button",
  81. "_name": "",
  82. "_objFlags": 0,
  83. "node": {
  84. "__id__": 1
  85. },
  86. "_enabled": true,
  87. "_normalMaterial": null,
  88. "_grayMaterial": null,
  89. "duration": 0.1,
  90. "zoomScale": 1.2,
  91. "clickEvents": [],
  92. "_N$interactable": true,
  93. "_N$enableAutoGrayEffect": false,
  94. "_N$transition": 3,
  95. "transition": 3,
  96. "_N$normalColor": {
  97. "__type__": "cc.Color",
  98. "r": 230,
  99. "g": 230,
  100. "b": 230,
  101. "a": 255
  102. },
  103. "_N$pressedColor": {
  104. "__type__": "cc.Color",
  105. "r": 200,
  106. "g": 200,
  107. "b": 200,
  108. "a": 255
  109. },
  110. "pressedColor": {
  111. "__type__": "cc.Color",
  112. "r": 200,
  113. "g": 200,
  114. "b": 200,
  115. "a": 255
  116. },
  117. "_N$hoverColor": {
  118. "__type__": "cc.Color",
  119. "r": 255,
  120. "g": 255,
  121. "b": 255,
  122. "a": 255
  123. },
  124. "hoverColor": {
  125. "__type__": "cc.Color",
  126. "r": 255,
  127. "g": 255,
  128. "b": 255,
  129. "a": 255
  130. },
  131. "_N$disabledColor": {
  132. "__type__": "cc.Color",
  133. "r": 120,
  134. "g": 120,
  135. "b": 120,
  136. "a": 200
  137. },
  138. "_N$normalSprite": {
  139. "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
  140. },
  141. "_N$pressedSprite": {
  142. "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
  143. },
  144. "pressedSprite": {
  145. "__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
  146. },
  147. "_N$hoverSprite": {
  148. "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
  149. },
  150. "hoverSprite": {
  151. "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
  152. },
  153. "_N$disabledSprite": {
  154. "__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
  155. },
  156. "_N$target": {
  157. "__id__": 1
  158. },
  159. "_id": ""
  160. },
  161. {
  162. "__type__": "cc.Sprite",
  163. "_name": "",
  164. "_objFlags": 0,
  165. "node": {
  166. "__id__": 1
  167. },
  168. "_enabled": true,
  169. "_materials": [
  170. {
  171. "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
  172. }
  173. ],
  174. "_srcBlendFactor": 770,
  175. "_dstBlendFactor": 771,
  176. "_spriteFrame": {
  177. "__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
  178. },
  179. "_type": 0,
  180. "_sizeMode": 1,
  181. "_fillType": 0,
  182. "_fillCenter": {
  183. "__type__": "cc.Vec2",
  184. "x": 0,
  185. "y": 0
  186. },
  187. "_fillStart": 0,
  188. "_fillRange": 0,
  189. "_isTrimmedMode": true,
  190. "_atlas": null,
  191. "_id": ""
  192. },
  193. {
  194. "__type__": "cc.PrefabInfo",
  195. "root": {
  196. "__id__": 1
  197. },
  198. "asset": {
  199. "__id__": 0
  200. },
  201. "fileId": "",
  202. "sync": false
  203. }
  204. ]