Commit dc7441e1 authored by limingzhe's avatar limingzhe

fix: 音频添加

parent 93b891d6
{"ver":"1.1.2","uuid":"c35bb2f6-f24a-4850-ae44-643f2fdc7541","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}} {
\ No newline at end of file "ver": "1.1.2",
"uuid": "c35bb2f6-f24a-4850-ae44-643f2fdc7541",
"isBundle": true,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": true,
"android": true
},
"subMetas": {}
}
\ No newline at end of file
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
"__id__": 2 "__id__": 2
}, },
{ {
"__id__": 18 "__id__": 21
}, },
{ {
"__id__": 19 "__id__": 22
} }
], ],
"_active": false, "_active": false,
...@@ -90,13 +90,13 @@ ...@@ -90,13 +90,13 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 15 "__id__": 18
}, },
{ {
"__id__": 16 "__id__": 19
}, },
{ {
"__id__": 17 "__id__": 20
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -503,12 +503,15 @@ ...@@ -503,12 +503,15 @@
"_children": [ "_children": [
{ {
"__id__": 12 "__id__": 12
},
{
"__id__": 14
} }
], ],
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 14 "__id__": 17
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -661,6 +664,135 @@ ...@@ -661,6 +664,135 @@
"_N$enableBatch": false, "_N$enableBatch": false,
"_id": "1faXXhRI1KLqhSa0Kh9gAs" "_id": "1faXXhRI1KLqhSa0Kh9gAs"
}, },
{
"__type__": "cc.Node",
"_name": "catBox",
"_objFlags": 0,
"_parent": {
"__id__": 11
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 15
},
{
"__id__": 16
}
],
"_prefab": null,
"_opacity": 0,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 200,
"height": 250
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
442.178,
-258.225,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "fewsDoJDRIopEACkqZv4aN"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "9bbda31e-ad49-43c9-aaf2-f7d9896bac69"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "43rrYItPVDhq6KnC7dEXKK"
},
{
"__type__": "cc.Layout",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 14
},
"_enabled": true,
"_layoutSize": {
"__type__": "cc.Size",
"width": 200,
"height": 250
},
"_resize": 0,
"_N$layoutType": 0,
"_N$cellSize": {
"__type__": "cc.Size",
"width": 40,
"height": 40
},
"_N$startAxis": 0,
"_N$paddingLeft": 0,
"_N$paddingRight": 0,
"_N$paddingTop": 0,
"_N$paddingBottom": 0,
"_N$spacingX": 0,
"_N$spacingY": 0,
"_N$verticalDirection": 1,
"_N$horizontalDirection": 0,
"_N$affectedByScale": false,
"_id": "fdch0+ElFEkKJDbjKBpwcS"
},
{ {
"__type__": "cc.Widget", "__type__": "cc.Widget",
"_name": "", "_name": "",
...@@ -811,10 +943,10 @@ ...@@ -811,10 +943,10 @@
"_active": true, "_active": true,
"_components": [ "_components": [
{ {
"__id__": 20 "__id__": 23
}, },
{ {
"__id__": 21 "__id__": 24
} }
], ],
"_prefab": null, "_prefab": null,
...@@ -870,7 +1002,7 @@ ...@@ -870,7 +1002,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 19 "__id__": 22
}, },
"_enabled": true, "_enabled": true,
"_materials": [ "_materials": [
...@@ -902,7 +1034,7 @@ ...@@ -902,7 +1034,7 @@
"_name": "", "_name": "",
"_objFlags": 0, "_objFlags": 0,
"node": { "node": {
"__id__": 19 "__id__": 22
}, },
"_enabled": true, "_enabled": true,
"_normalMaterial": null, "_normalMaterial": null,
......
...@@ -110,6 +110,7 @@ cc.Class({ ...@@ -110,6 +110,7 @@ cc.Class({
); );
this._audioResList.push({ url: this.data.startAudio }); this._audioResList.push({ url: this.data.startAudio });
this._audioResList.push({ url: this.data.tipAudio });
this._audioResList.push({ url: this.data.endAudio }); this._audioResList.push({ url: this.data.endAudio });
}, },
...@@ -154,6 +155,7 @@ cc.Class({ ...@@ -154,6 +155,7 @@ cc.Class({
async initView() { async initView() {
this.coolCatSpeakStart(); this.coolCatSpeakStart();
this.addCoolCatListener();
const canvas = cc.find('Canvas'); const canvas = cc.find('Canvas');
const bg = cc.find('Canvas/ImgBg'); const bg = cc.find('Canvas/ImgBg');
...@@ -177,6 +179,33 @@ cc.Class({ ...@@ -177,6 +179,33 @@ cc.Class({
.start(); .start();
}, },
addCoolCatListener() {
const catBox = cc.find('Canvas/catFrame/catBox');
catBox.on('touchstart', async () => {
if (!this.isCanPlayItemAudio) {
return;
}
if (this.isItemAudioPlaying) {
return;
}
if (this.isTipAudioPlaying) {
return;
}
const cat = cc.find('Canvas/catFrame/cat');
playDragonBoneAnimation(cat, 'begin', -1);
this.isTipAudioPlaying = true;
await this.asyncPlayAudioByUrl(this.data.tipAudio);
this.isTipAudioPlaying = false;
playDragonBoneAnimation(cat, 'normal', -1);
})
},
coolCatAlreadySpeakEnd: null, coolCatAlreadySpeakEnd: null,
async createItem(itemData, bg) { async createItem(itemData, bg) {
const bgScale = bg.width / this.data.bgItem.rect.width; const bgScale = bg.width / this.data.bgItem.rect.width;
...@@ -185,9 +214,21 @@ cc.Class({ ...@@ -185,9 +214,21 @@ cc.Class({
item.parent = bg; item.parent = bg;
item.on('click', async () => { item.on('click', async () => {
if (!this.isCanPlayItemAudio) {
return;
}
this.isItemAudioPlaying = true;
this.stopAllAduio();
item.clicked = true; item.clicked = true;
this.shakeItem(item); this.shakeItem(item);
await this.asyncPlayAudioByUrl(itemData.audio_url); await this.asyncPlayAudioByUrl(itemData.audio_url);
this.isItemAudioPlaying = false;
if (!this.coolCatAlreadySpeakEnd) { if (!this.coolCatAlreadySpeakEnd) {
if (this.itemList.every(tmpItem => tmpItem.clicked)) { if (this.itemList.every(tmpItem => tmpItem.clicked)) {
this.coolCatAlreadySpeakEnd = true; this.coolCatAlreadySpeakEnd = true;
...@@ -207,6 +248,14 @@ cc.Class({ ...@@ -207,6 +248,14 @@ cc.Class({
return item; return item;
}, },
stopAllAduio() {
this.isTipAudioPlaying = false;
const cat = cc.find('Canvas/catFrame/cat');
playDragonBoneAnimation(cat, 'normal', -1);
cc.audioEngine.stopAll();
},
initListener() { initListener() {
}, },
...@@ -215,7 +264,9 @@ cc.Class({ ...@@ -215,7 +264,9 @@ cc.Class({
async coolCatSpeakStart(cb) { async coolCatSpeakStart(cb) {
const cat = cc.find('Canvas/catFrame/cat'); const cat = cc.find('Canvas/catFrame/cat');
playDragonBoneAnimation(cat, 'begin', -1); playDragonBoneAnimation(cat, 'begin', -1);
this.isCanPlayItemAudio = false;
await this.asyncPlayAudioByUrl(this.data.startAudio); await this.asyncPlayAudioByUrl(this.data.startAudio);
this.isCanPlayItemAudio = true;
playDragonBoneAnimation(cat, 'normal', -1); playDragonBoneAnimation(cat, 'normal', -1);
}, },
......
export const defaultData = { "startAudio": "http://staging-teach.cdn.ireadabc.com/fa5ac4254fa286541084787985fff323.mp3", "endAudio": "http://staging-teach.cdn.ireadabc.com/9f6ff5d0617bf274ee2d9af4cfc93c62.mp3", "bgItem": { "url": "http://staging-teach.cdn.ireadabc.com/5f386875d81fe018682062dc716a2f83.jpg", "rect": { "x": 281.56, "y": 0, "width": 1128.89, "height": 635 } }, "hotZoneItemArr": [{ "id": "1632453910417", "index": 0, "pic_url": "http://staging-teach.cdn.ireadabc.com/6b900e48a68f389dcd8c6dbd3455a270.jpg", "audio_url": "http://staging-teach.cdn.ireadabc.com/c08af4f22c71ad8b3d8786a837787ac9.mp3", "itemType": "pic", "fontScale": 1.321875, "imgScale": 1.136111111111111, "mapScale": 1.321875, "gIdx": "0", "rect": { "x": 419.02, "y": 172.08, "width": 290.84, "height": 290.84 } }] } export const defaultData = {"startAudio":"http://staging-teach.cdn.ireadabc.com/83513f8d6083ebe072e3f9e47a21558a.mp3","endAudio":"http://staging-teach.cdn.ireadabc.com/440cf9d57752b30691d90ed565e8c924.mp3","bgItem":{"url":"http://staging-teach.cdn.ireadabc.com/5f386875d81fe018682062dc716a2f83.jpg","rect":{"x":187,"y":0,"width":768,"height":432}},"hotZoneItemArr":[{"id":"1632453910417","index":0,"pic_url":"http://staging-teach.cdn.ireadabc.com/6b900e48a68f389dcd8c6dbd3455a270.jpg","audio_url":"http://staging-teach.cdn.ireadabc.com/c08af4f22c71ad8b3d8786a837787ac9.mp3","itemType":"pic","fontScale":0.8921875,"imgScale":1.136111111111111,"mapScale":0.8921875,"gIdx":"0","rect":{"x":238.58,"y":70.58,"width":290.84,"height":290.84}}],"tipAudio":"http://staging-teach.cdn.ireadabc.com/5285e1e88a26a08783757e9c43a8653f.mp3"}
\ No newline at end of file \ No newline at end of file
...@@ -12,6 +12,14 @@ ...@@ -12,6 +12,14 @@
</app-audio-recorder> </app-audio-recorder>
</div> </div>
<span style="height: 30px; font-size: 18px;">待机语音:</span>
<div style="width: 200px;">
<app-audio-recorder
[audioUrl]="item.tipAudio"
(audioUploaded)="onAudioUploadSuccess($event, 'tipAudio')">
</app-audio-recorder>
</div>
<span style="height: 30px; font-size: 18px;">结束语音:</span> <span style="height: 30px; font-size: 18px;">结束语音:</span>
<div style="width: 200px;"> <div style="width: 200px;">
<app-audio-recorder <app-audio-recorder
......
This diff is collapsed.
[
{
"__type__": "cc.Prefab",
"_name": "slider",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 1,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "slider",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
}
],
"_active": true,
"_components": [
{
"__id__": 9
}
],
"_prefab": {
"__id__": 10
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 20
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 20
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "31d8962d-babb-4ec7-be19-8e9f54a4ea99"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0004d1cf-a0ad-47d8-ab17-34d3db9d35a3"
},
"fileId": "f43c4gNvOtBE41OTztiOT6T",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "Handle",
"_objFlags": 512,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
},
{
"__id__": 7
}
],
"_prefab": {
"__id__": 8
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 32,
"height": 32
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "e7aba14b-f956-4480-b254-8d57832e273f"
},
"_type": 1,
"_sizeMode": 2,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.1,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": true,
"_N$transition": 3,
"transition": 3,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$normalSprite": {
"__uuid__": "e7aba14b-f956-4480-b254-8d57832e273f"
},
"_N$pressedSprite": {
"__uuid__": "e7aba14b-f956-4480-b254-8d57832e273f"
},
"pressedSprite": {
"__uuid__": "e7aba14b-f956-4480-b254-8d57832e273f"
},
"_N$hoverSprite": {
"__uuid__": "e7aba14b-f956-4480-b254-8d57832e273f"
},
"hoverSprite": {
"__uuid__": "e7aba14b-f956-4480-b254-8d57832e273f"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 5
},
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0004d1cf-a0ad-47d8-ab17-34d3db9d35a3"
},
"fileId": "93f4b6UTvtD0Iy5hi3tLIn2",
"sync": false
},
{
"__type__": "cc.Slider",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"direction": 0,
"slideEvents": [],
"_N$handle": {
"__id__": 7
},
"_N$progress": 0.5,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0004d1cf-a0ad-47d8-ab17-34d3db9d35a3"
},
"fileId": "8ac42iRpDlK6pemd22ZO6x/",
"sync": false
}
]
\ No newline at end of file
{
"__type__": "cc.Texture2D",
"content": "0,9729,9729,33071,33071,0,0,1"
}
\ No newline at end of file
{
"__type__": "cc.Texture2D",
"content": "0,9729,9729,33071,33071,0,0,1"
}
\ No newline at end of file
[
{
"__type__": "cc.Mesh",
"_name": "",
"_objFlags": 0,
"_native": ".bin",
"_vertexBundles": [
{
"__id__": 1
}
],
"_primitives": [
{
"__id__": 6
}
],
"_minPos": {
"__type__": "cc.Vec3",
"x": -0.5,
"y": -0.5,
"z": -0.5
},
"_maxPos": {
"__type__": "cc.Vec3",
"x": 0.5,
"y": 0.5,
"z": 0.5
}
},
{
"__type__": "cc.mesh.VertexBundle",
"data": {
"__id__": 2
},
"formats": [
{
"__id__": 3
},
{
"__id__": 4
},
{
"__id__": 5
}
],
"verticesCount": 24
},
{
"__type__": "cc.BufferRange",
"offset": 0,
"length": 768
},
{
"__type__": "cc.mesh.VertexFormat",
"name": "a_normal",
"type": 5126,
"num": 3,
"normalize": false
},
{
"__type__": "cc.mesh.VertexFormat",
"name": "a_position",
"type": 5126,
"num": 3,
"normalize": false
},
{
"__type__": "cc.mesh.VertexFormat",
"name": "a_uv0",
"type": 5126,
"num": 2,
"normalize": false
},
{
"__type__": "cc.mesh.Primitive",
"vertexBundleIndices": [
0
],
"data": {
"__id__": 7
},
"indexUnit": 5123,
"topology": 4
},
{
"__type__": "cc.BufferRange",
"offset": 768,
"length": 72
}
]
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "point",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "light",
"_objFlags": 0,
"_parent": null,
"_children": [],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 2
}
],
"_prefab": {
"__id__": 3
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": true,
"groupIndex": 0,
"_id": "",
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
0,
1,
1,
1
]
}
},
{
"__type__": "cc.Light",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_type": 1,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_intensity": 1,
"_range": 1000,
"_spotAngle": 60,
"_spotExp": 1,
"_shadowType": 0,
"_shadowResolution": 1024,
"_shadowDarkness": 0.5,
"_shadowMinDepth": 1,
"_shadowMaxDepth": 1000,
"_shadowDepthScale": 250,
"_shadowFrustumSize": 50,
"_shadowBias": 0.0005,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0cf30284-9073-46bc-9eba-e62b69dbbff3"
},
"fileId": "33zOkteexCqamZ4PXuwJaW",
"sync": false
}
]
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "toggle",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 1,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "toggle",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
},
{
"__id__": 5
}
],
"_active": true,
"_components": [
{
"__id__": 8
}
],
"_prefab": {
"__id__": 9
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 28,
"height": 28
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Background",
"_objFlags": 512,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 28,
"height": 28
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "6827ca32-0107-4552-bab2-dfb31799bb44"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0d784963-d024-4ea6-a7db-03be0ad63010"
},
"fileId": "238bacn/jZGGYuFN7ndSzkO",
"sync": false
},
{
"__type__": "cc.Node",
"_name": "checkmark",
"_objFlags": 512,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 28,
"height": 28
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 5
},
"_enabled": true,
"_materials": [
{
"__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "90004ad6-2f6d-40e1-93ef-b714375c6f06"
},
"_type": 0,
"_sizeMode": 2,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": false,
"_atlas": null,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0d784963-d024-4ea6-a7db-03be0ad63010"
},
"fileId": "0d447hRg/9AuLVwR7+lDw/1",
"sync": false
},
{
"__type__": "cc.Toggle",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_normalMaterial": null,
"_grayMaterial": null,
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$transition": 3,
"transition": 3,
"_N$normalColor": {
"__type__": "cc.Color",
"r": 214,
"g": 214,
"b": 214,
"a": 255
},
"_N$pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"pressedColor": {
"__type__": "cc.Color",
"r": 211,
"g": 211,
"b": 211,
"a": 255
},
"_N$hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_N$disabledColor": {
"__type__": "cc.Color",
"r": 124,
"g": 124,
"b": 124,
"a": 255
},
"_N$normalSprite": null,
"_N$pressedSprite": null,
"pressedSprite": null,
"_N$hoverSprite": null,
"hoverSprite": null,
"_N$disabledSprite": null,
"_N$target": {
"__id__": 2
},
"_N$isChecked": true,
"toggleGroup": null,
"checkMark": {
"__id__": 6
},
"checkEvents": [],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0d784963-d024-4ea6-a7db-03be0ad63010"
},
"fileId": "3d81aISgHdGFblE/PZD2Cp3",
"sync": false
}
]
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "tiledtile",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "New TiledTile",
"_objFlags": 0,
"_parent": null,
"_children": [],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 2
}
],
"_prefab": {
"__id__": 3
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 45,
"groupIndex": 0,
"_id": "",
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
0,
1,
1,
1
]
}
},
{
"__type__": "cc.TiledTile",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_x": 0,
"_y": 0,
"_gid": 6,
"_layer": null,
"_id": "39h1tJvWtC8oLyzYKulleV"
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "0e42ba95-1fa1-46aa-b2cf-143cd1bcee2c"
},
"fileId": "fb1JS09SVFapQy1+PoRN4F",
"sync": false
}
]
\ No newline at end of file
{
"__type__": "cc.EffectAsset",
"_name": "builtin-2d-spine",
"_objFlags": 0,
"_native": "",
"properties": null,
"techniques": [
{
"passes": [
{
"blendState": {
"targets": [
{
"blend": true
}
]
},
"rasterizerState": {
"cullMode": 0
},
"properties": {
"texture": {
"value": "white",
"type": 29
},
"alphaThreshold": {
"value": [
0.5
],
"type": 13
}
},
"program": "builtin-2d-spine|vs|fs"
}
]
}
],
"shaders": [
{
"hash": 3550530479,
"glsl3": {
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\n#if USE_TINT\n in vec4 a_color0;\n#endif\nin vec2 a_uv0;\nout vec2 v_uv0;\nout vec4 v_light;\n#if USE_TINT\n out vec4 v_dark;\n#endif\nvoid main () {\n mat4 mvp;\n #if CC_USE_MODEL\n mvp = cc_matViewProj * cc_matWorld;\n #else\n mvp = cc_matViewProj;\n #endif\n v_uv0 = a_uv0;\n v_light = a_color;\n #if USE_TINT\n v_dark = a_color0;\n #endif\n gl_Position = mvp * vec4(a_position, 1);\n}",
"frag": "\nprecision highp float;\nuniform sampler2D texture;\nin vec2 v_uv0;\nin vec4 v_light;\n#if USE_TINT\n in vec4 v_dark;\n#endif\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvoid main () {\n vec4 texColor = vec4(1.0);\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n texColor.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n texColor.a *= texture_tmp.a;\n #else\n texColor *= texture_tmp;\n #endif\n vec4 finalColor;\n #if USE_TINT\n finalColor.a = v_light.a * texColor.a;\n finalColor.rgb = ((texColor.a - 1.0) * v_dark.a + 1.0 - texColor.rgb) * v_dark.rgb + texColor.rgb * v_light.rgb;\n #else\n finalColor = texColor * v_light;\n #endif\n ALPHA_TEST(finalColor);\n gl_FragColor = finalColor;\n}"
},
"glsl1": {
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\n#if USE_TINT\n attribute vec4 a_color0;\n#endif\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\nvarying vec4 v_light;\n#if USE_TINT\n varying vec4 v_dark;\n#endif\nvoid main () {\n mat4 mvp;\n #if CC_USE_MODEL\n mvp = cc_matViewProj * cc_matWorld;\n #else\n mvp = cc_matViewProj;\n #endif\n v_uv0 = a_uv0;\n v_light = a_color;\n #if USE_TINT\n v_dark = a_color0;\n #endif\n gl_Position = mvp * vec4(a_position, 1);\n}",
"frag": "\nprecision highp float;\nuniform sampler2D texture;\nvarying vec2 v_uv0;\nvarying vec4 v_light;\n#if USE_TINT\n varying vec4 v_dark;\n#endif\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvoid main () {\n vec4 texColor = vec4(1.0);\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n texColor.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n texColor.a *= texture_tmp.a;\n #else\n texColor *= texture_tmp;\n #endif\n vec4 finalColor;\n #if USE_TINT\n finalColor.a = v_light.a * texColor.a;\n finalColor.rgb = ((texColor.a - 1.0) * v_dark.a + 1.0 - texColor.rgb) * v_dark.rgb + texColor.rgb * v_light.rgb;\n #else\n finalColor = texColor * v_light;\n #endif\n ALPHA_TEST(finalColor);\n gl_FragColor = finalColor;\n}"
},
"builtins": {
"globals": {
"blocks": [
{
"name": "CCGlobal",
"defines": []
}
],
"samplers": []
},
"locals": {
"blocks": [
{
"name": "CCLocal",
"defines": []
}
],
"samplers": []
}
},
"defines": [
{
"name": "USE_TINT",
"type": "boolean",
"defines": []
},
{
"name": "CC_USE_MODEL",
"type": "boolean",
"defines": []
},
{
"name": "USE_ALPHA_TEST",
"type": "boolean",
"defines": []
},
{
"name": "CC_USE_ALPHA_ATLAS_texture",
"type": "boolean",
"defines": []
},
{
"name": "INPUT_IS_GAMMA",
"type": "boolean",
"defines": []
}
],
"blocks": [
{
"name": "ALPHA_TEST",
"members": [
{
"name": "alphaThreshold",
"type": 13,
"count": 1
}
],
"defines": [
"USE_ALPHA_TEST"
],
"binding": 0
}
],
"samplers": [
{
"name": "texture",
"type": 29,
"count": 1,
"defines": [],
"binding": 30
}
],
"record": null,
"name": "builtin-2d-spine|vs|fs"
}
]
}
\ No newline at end of file
{
"__type__": "cc.EffectAsset",
"_name": "builtin-2d-gray-sprite",
"_objFlags": 0,
"_native": "",
"properties": null,
"techniques": [
{
"passes": [
{
"blendState": {
"targets": [
{
"blend": true
}
]
},
"rasterizerState": {
"cullMode": 0
},
"properties": {
"texture": {
"value": "white",
"type": 29
}
},
"program": "builtin-2d-gray-sprite|vs|fs"
}
]
}
],
"shaders": [
{
"hash": 4278481454,
"glsl3": {
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nin vec3 a_position;\nin mediump vec2 a_uv0;\nout mediump vec2 v_uv0;\nin vec4 a_color;\nout vec4 v_color;\nvoid main () {\n gl_Position = cc_matViewProj * vec4(a_position, 1);\n v_uv0 = a_uv0;\n v_color = a_color;\n}",
"frag": "\nprecision highp float;\nuniform sampler2D texture;\nin mediump vec2 v_uv0;\nin vec4 v_color;\nvoid main () {\n vec4 color = v_color;\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n color.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n color.a *= texture_tmp.a;\n #else\n color *= texture_tmp;\n #endif\n float gray = 0.2126*color.r + 0.7152*color.g + 0.0722*color.b;\n gl_FragColor = vec4(gray, gray, gray, color.a);\n}"
},
"glsl1": {
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nattribute vec3 a_position;\nattribute mediump vec2 a_uv0;\nvarying mediump vec2 v_uv0;\nattribute vec4 a_color;\nvarying vec4 v_color;\nvoid main () {\n gl_Position = cc_matViewProj * vec4(a_position, 1);\n v_uv0 = a_uv0;\n v_color = a_color;\n}",
"frag": "\nprecision highp float;\nuniform sampler2D texture;\nvarying mediump vec2 v_uv0;\nvarying vec4 v_color;\nvoid main () {\n vec4 color = v_color;\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n color.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n color.a *= texture_tmp.a;\n #else\n color *= texture_tmp;\n #endif\n float gray = 0.2126*color.r + 0.7152*color.g + 0.0722*color.b;\n gl_FragColor = vec4(gray, gray, gray, color.a);\n}"
},
"builtins": {
"globals": {
"blocks": [
{
"name": "CCGlobal",
"defines": []
}
],
"samplers": []
},
"locals": {
"blocks": [],
"samplers": []
}
},
"defines": [
{
"name": "CC_USE_ALPHA_ATLAS_texture",
"type": "boolean",
"defines": []
},
{
"name": "INPUT_IS_GAMMA",
"type": "boolean",
"defines": []
}
],
"blocks": [],
"samplers": [
{
"name": "texture",
"type": 29,
"count": 1,
"defines": [],
"binding": 30
}
],
"record": null,
"name": "builtin-2d-gray-sprite|vs|fs"
}
]
}
\ No newline at end of file
[
{
"__type__": "cc.Mesh",
"_name": "",
"_objFlags": 0,
"_native": ".bin",
"_vertexBundles": [
{
"__id__": 1
}
],
"_primitives": [
{
"__id__": 6
}
],
"_minPos": {
"__type__": "cc.Vec3",
"x": -0.5,
"y": -0.0999999940395355,
"z": -0.5
},
"_maxPos": {
"__type__": "cc.Vec3",
"x": 0.5,
"y": 0.0999999940395355,
"z": 0.5
}
},
{
"__type__": "cc.mesh.VertexBundle",
"data": {
"__id__": 2
},
"formats": [
{
"__id__": 3
},
{
"__id__": 4
},
{
"__id__": 5
}
],
"verticesCount": 1089
},
{
"__type__": "cc.BufferRange",
"offset": 0,
"length": 34848
},
{
"__type__": "cc.mesh.VertexFormat",
"name": "a_normal",
"type": 5126,
"num": 3,
"normalize": false
},
{
"__type__": "cc.mesh.VertexFormat",
"name": "a_position",
"type": 5126,
"num": 3,
"normalize": false
},
{
"__type__": "cc.mesh.VertexFormat",
"name": "a_uv0",
"type": 5126,
"num": 2,
"normalize": false
},
{
"__type__": "cc.mesh.Primitive",
"vertexBundleIndices": [
0
],
"data": {
"__id__": 7
},
"indexUnit": 5123,
"topology": 4
},
{
"__type__": "cc.BufferRange",
"offset": 34848,
"length": 12288
}
]
\ No newline at end of file
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "default_radio_button_on",
"texture": "9d60001f-b5f4-4726-a629-2659e3ded0b8",
"atlas": "",
"rect": [
1,
1,
30,
30
],
"offset": [
0,
0
],
"originalSize": [
32,
32
],
"capInsets": [
0,
0,
0,
0
]
}
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "cylinder",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "cylinder",
"_objFlags": 0,
"_parent": null,
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
}
],
"_prefab": {
"__id__": 3
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": true,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "b430cea3-6ab3-4106-b073-26c698918edd"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "1c5e4038-953a-44c2-b620-0bbfc6170477"
},
"fileId": "3dlUtIqQhGCrx5Sishojtq",
"sync": false
}
]
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "sprite_splash",
"_objFlags": 0,
"data": {
"__id__": 1
},
"optimizationPolicy": 1,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "New Sprite (Splash)",
"_objFlags": 0,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_parent": null,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 100
},
"_children": [],
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_tag": -1,
"_opacityModifyRGB": false,
"_reorderChildDirty": false,
"_id": "",
"_active": true,
"_components": [
{
"__id__": 2
}
],
"_prefab": {
"__id__": 3
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
0,
1,
1,
1
]
}
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_spriteFrame": {
"__uuid__": "a23235d1-15db-4b95-8439-a2e005bfff91"
},
"_type": 0,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_atlas": null
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": null,
"fileId": "1a0f4zwu2VOapqEJkWXIF0R"
}
]
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "videoplayer",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 1,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "videoplayer",
"_objFlags": 0,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_parent": null,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 428,
"height": 240
},
"_children": [],
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_tag": -1,
"_opacityModifyRGB": false,
"_reorderChildDirty": false,
"_id": "",
"_active": true,
"_components": [
{
"__id__": 2
}
],
"_prefab": {
"__id__": 3
},
"groupIndex": 0,
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
0,
1,
1,
1
]
}
},
{
"__type__": "cc.VideoPlayer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_resourceType": 1,
"_remoteURL": "",
"_clip": {
"__uuid__": "2be36297-9abb-4fee-8049-9ed5e271da8a"
},
"_time": 0,
"videoPlayerEvent": [],
"_N$keepAspectRatio": true,
"_N$isFullscreen": false
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "232d2782-c4bd-4bb4-9e01-909f03d6d3b9"
},
"fileId": "f0e6ehf9IVMI51Egy+e0ZTA"
}
]
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "label",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 1,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_cascadeOpacityEnabled": true,
"_parent": null,
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_contentSize": {
"__type__": "cc.Size",
"width": 128,
"height": 50
},
"_children": [],
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 0,
"_globalZOrder": 0,
"_ignoreAnchorPointForPosition": false,
"_tag": -1,
"_opacityModifyRGB": false,
"_id": "",
"_active": true,
"_components": [
{
"__id__": 2
}
],
"_prefab": {
"__id__": 3
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
0,
1,
1,
1
]
}
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_useOriginalSize": false,
"_fontSize": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_isSystemFontUsed": true,
"_N$string": "Label",
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$overflow": 0
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": null,
"fileId": "d1cddH/doRNQ4Aodz8556bh"
}
]
\ No newline at end of file
{
"__type__": "cc.EffectAsset",
"_name": "builtin-2d-sprite",
"_objFlags": 0,
"_native": "",
"properties": null,
"techniques": [
{
"passes": [
{
"blendState": {
"targets": [
{
"blend": true
}
]
},
"rasterizerState": {
"cullMode": 0
},
"properties": {
"texture": {
"value": "white",
"type": 29
},
"alphaThreshold": {
"value": [
0.5
],
"type": 13
}
},
"program": "builtin-2d-sprite|vs|fs"
}
]
}
],
"shaders": [
{
"hash": 3278106612,
"glsl3": {
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\n#if USE_TEXTURE\nin vec2 a_uv0;\nout vec2 v_uv0;\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #endif\n v_color = a_color;\n gl_Position = pos;\n}",
"frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\n#if USE_TEXTURE\nin vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n vec4 texture_tmp = texture(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n}"
},
"glsl1": {
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\n#if USE_TEXTURE\nattribute vec2 a_uv0;\nvarying vec2 v_uv0;\n#endif\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n #if CC_USE_MODEL\n pos = cc_matViewProj * cc_matWorld * pos;\n #else\n pos = cc_matViewProj * pos;\n #endif\n #if USE_TEXTURE\n v_uv0 = a_uv0;\n #endif\n v_color = a_color;\n gl_Position = pos;\n}",
"frag": "\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\n#if USE_TEXTURE\nvarying vec2 v_uv0;\nuniform sampler2D texture;\n#endif\nvoid main () {\n vec4 o = vec4(1, 1, 1, 1);\n #if USE_TEXTURE\n vec4 texture_tmp = texture2D(texture, v_uv0);\n #if CC_USE_ALPHA_ATLAS_texture\n texture_tmp.a *= texture2D(texture, v_uv0 + vec2(0, 0.5)).r;\n #endif\n #if INPUT_IS_GAMMA\n o.rgb *= (texture_tmp.rgb * texture_tmp.rgb);\n o.a *= texture_tmp.a;\n #else\n o *= texture_tmp;\n #endif\n #endif\n o *= v_color;\n ALPHA_TEST(o);\n gl_FragColor = o;\n}"
},
"builtins": {
"globals": {
"blocks": [
{
"name": "CCGlobal",
"defines": []
}
],
"samplers": []
},
"locals": {
"blocks": [
{
"name": "CCLocal",
"defines": []
}
],
"samplers": []
}
},
"defines": [
{
"name": "USE_TEXTURE",
"type": "boolean",
"defines": []
},
{
"name": "CC_USE_MODEL",
"type": "boolean",
"defines": []
},
{
"name": "USE_ALPHA_TEST",
"type": "boolean",
"defines": []
},
{
"name": "CC_USE_ALPHA_ATLAS_texture",
"type": "boolean",
"defines": [
"USE_TEXTURE"
]
},
{
"name": "INPUT_IS_GAMMA",
"type": "boolean",
"defines": [
"USE_TEXTURE"
]
}
],
"blocks": [
{
"name": "ALPHA_TEST",
"members": [
{
"name": "alphaThreshold",
"type": 13,
"count": 1
}
],
"defines": [
"USE_ALPHA_TEST"
],
"binding": 0
}
],
"samplers": [
{
"name": "texture",
"type": 29,
"count": 1,
"defines": [
"USE_TEXTURE"
],
"binding": 30
}
],
"record": null,
"name": "builtin-2d-sprite|vs|fs"
}
]
}
\ No newline at end of file
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "default_btn_disabled",
"texture": "71561142-4c83-4933-afca-cb7a17f67053",
"atlas": "",
"rect": [
0,
0,
40,
40
],
"offset": [
0,
0
],
"originalSize": [
40,
40
],
"capInsets": [
12,
12,
12,
12
]
}
}
\ No newline at end of file
{
"__type__": "cc.Material",
"_name": "builtin-unlit",
"_objFlags": 0,
"_native": "",
"_effectAsset": {
"__uuid__": "6d91e591-4ce0-465c-809f-610ec95019c6"
},
"_techniqueData": {
"0": {
"props": {
"diffuseTexture": {
"__uuid__": "0275e94c-56a7-410f-bd1a-fc7483f7d14a"
}
},
"defines": {
"USE_DIFFUSE_TEXTURE": true
}
}
}
}
\ No newline at end of file
{
"__type__": "cc.Asset",
"_name": "default_video",
"_objFlags": 0,
"_native": ".mp4"
}
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "canvas",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 1,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "Canvas",
"_objFlags": 0,
"_parent": null,
"_children": [
{
"__id__": 2
}
],
"_active": true,
"_components": [
{
"__id__": 5
},
{
"__id__": 6
}
],
"_prefab": {
"__id__": 7
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 960,
"height": 640
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
480,
320,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Node",
"_name": "Main Camera",
"_objFlags": 0,
"_parent": {
"__id__": 1
},
"_children": [],
"_active": true,
"_components": [
{
"__id__": 3
}
],
"_prefab": {
"__id__": 4
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
365.46272039703314,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.Camera",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 2
},
"_enabled": true,
"_cullingMask": 4294967295,
"_clearFlags": 7,
"_backgroundColor": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_depth": -1,
"_zoomRatio": 1,
"_targetTexture": null,
"_fov": 60,
"_orthoSize": 10,
"_nearClip": 1,
"_farClip": 4096,
"_ortho": true,
"_rect": {
"__type__": "cc.Rect",
"x": 0,
"y": 0,
"width": 1,
"height": 1
},
"_renderStages": 1,
"_alignWithScreen": true,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "2c937608-2562-40ea-b264-7395df6f0cea"
},
"fileId": "d2xIc1y/ZF6Kn7K3yqwDJm",
"sync": false
},
{
"__type__": "cc.Canvas",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_designResolution": {
"__type__": "cc.Size",
"width": 960,
"height": 640
},
"_fitWidth": false,
"_fitHeight": true,
"_id": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"alignMode": 1,
"_target": null,
"_alignFlags": 45,
"_left": 0,
"_right": 0,
"_top": 0,
"_bottom": 0,
"_verticalCenter": 0,
"_horizontalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "2c937608-2562-40ea-b264-7395df6f0cea"
},
"fileId": "a6aa1W/pshGFZkMhhqxkZYP",
"sync": false
}
]
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "sphere",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "sphere",
"_objFlags": 0,
"_parent": null,
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
}
],
"_prefab": {
"__id__": 3
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": true,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "3bbdb0f6-c5f6-45de-9f33-8b5cbafb4d6d"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "2d9a4b85-b0ab-4c46-84c5-18f393ab2058"
},
"fileId": "e0chObmn1N5q+1kVoqVegu",
"sync": false
}
]
\ No newline at end of file
{
"__type__": "cc.EffectAsset",
"_name": "builtin-2d-graphics",
"_objFlags": 0,
"_native": "",
"properties": null,
"techniques": [
{
"passes": [
{
"blendState": {
"targets": [
{
"blend": true,
"blendSrc": 1,
"blendDst": 771,
"blendSrcAlpha": 1,
"blendDstAlpha": 771
}
]
},
"rasterizerState": {
"cullMode": 0
},
"properties": {
"alphaThreshold": {
"value": [
0.5
],
"type": 13
}
},
"program": "builtin-2d-graphics|vs|fs"
}
]
}
],
"shaders": [
{
"hash": 550349795,
"glsl3": {
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nin vec3 a_position;\nin vec4 a_color;\nout vec4 v_color;\nin float a_dist;\nout float v_dist;\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n pos = cc_matViewProj * cc_matWorld * pos;\n v_color = a_color;\n v_dist = a_dist;\n gl_Position = pos;\n}",
"frag": "\n#if CC_SUPPORT_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform ALPHA_TEST {\n float alphaThreshold;\n };\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nin vec4 v_color;\nin float v_dist;\nvoid main () {\n vec4 o = v_color;\n ALPHA_TEST(o);\n #if CC_SUPPORT_standard_derivatives\n float aa = fwidth(v_dist);\n #else\n float aa = 0.05;\n #endif\n float alpha = 1. - smoothstep(-aa, 0., abs(v_dist) - 1.0);\n o.rgb *= o.a;\n o *= alpha;\n gl_FragColor = o;\n}"
},
"glsl1": {
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nattribute vec4 a_color;\nvarying vec4 v_color;\nattribute float a_dist;\nvarying float v_dist;\nvoid main () {\n vec4 pos = vec4(a_position, 1);\n pos = cc_matViewProj * cc_matWorld * pos;\n v_color = a_color;\n v_dist = a_dist;\n gl_Position = pos;\n}",
"frag": "\n#if CC_SUPPORT_standard_derivatives\n #extension GL_OES_standard_derivatives : enable\n#endif\nprecision highp float;\n#if USE_ALPHA_TEST\n uniform float alphaThreshold;\n#endif\nvoid ALPHA_TEST (in vec4 color) {\n #if USE_ALPHA_TEST\n if (color.a < alphaThreshold) discard;\n #endif\n}\nvoid ALPHA_TEST (in float alpha) {\n #if USE_ALPHA_TEST\n if (alpha < alphaThreshold) discard;\n #endif\n}\nvarying vec4 v_color;\nvarying float v_dist;\nvoid main () {\n vec4 o = v_color;\n ALPHA_TEST(o);\n #if CC_SUPPORT_standard_derivatives\n float aa = fwidth(v_dist);\n #else\n float aa = 0.05;\n #endif\n float alpha = 1. - smoothstep(-aa, 0., abs(v_dist) - 1.0);\n o.rgb *= o.a;\n o *= alpha;\n gl_FragColor = o;\n}"
},
"builtins": {
"globals": {
"blocks": [
{
"name": "CCGlobal",
"defines": []
}
],
"samplers": []
},
"locals": {
"blocks": [
{
"name": "CCLocal",
"defines": []
}
],
"samplers": []
}
},
"defines": [
{
"name": "CC_SUPPORT_standard_derivatives",
"type": "boolean",
"defines": []
},
{
"name": "USE_ALPHA_TEST",
"type": "boolean",
"defines": []
}
],
"blocks": [
{
"name": "ALPHA_TEST",
"members": [
{
"name": "alphaThreshold",
"type": 13,
"count": 1
}
],
"defines": [
"USE_ALPHA_TEST"
],
"binding": 0
}
],
"samplers": [],
"record": null,
"name": "builtin-2d-graphics|vs|fs"
}
]
}
\ No newline at end of file
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "default_scrollbar",
"texture": "0291c134-b3da-4098-b7b5-e397edbe947f",
"atlas": "",
"rect": [
0,
0,
30,
15
],
"offset": [
0,
0
],
"originalSize": [
30,
15
],
"capInsets": [
10,
4,
10,
4
]
}
}
\ No newline at end of file
{
"__type__": "cc.Material",
"_name": "builtin-2d-gray-sprite",
"_objFlags": 0,
"_native": "",
"_effectAsset": {
"__uuid__": "144c3297-af63-49e8-b8ef-1cfa29b3be28"
},
"_techniqueData": {}
}
\ No newline at end of file
[
{
"__type__": "cc.Mesh",
"_name": "",
"_objFlags": 0,
"_native": ".bin",
"_vertexBundles": [
{
"__id__": 1
}
],
"_primitives": [
{
"__id__": 6
}
],
"_minPos": {
"__type__": "cc.Vec3",
"x": -0.5,
"y": -0.5,
"z": -0.5
},
"_maxPos": {
"__type__": "cc.Vec3",
"x": 0.5,
"y": 0.5,
"z": 0.5
}
},
{
"__type__": "cc.mesh.VertexBundle",
"data": {
"__id__": 2
},
"formats": [
{
"__id__": 3
},
{
"__id__": 4
},
{
"__id__": 5
}
],
"verticesCount": 1089
},
{
"__type__": "cc.BufferRange",
"offset": 0,
"length": 34848
},
{
"__type__": "cc.mesh.VertexFormat",
"name": "a_normal",
"type": 5126,
"num": 3,
"normalize": false
},
{
"__type__": "cc.mesh.VertexFormat",
"name": "a_position",
"type": 5126,
"num": 3,
"normalize": false
},
{
"__type__": "cc.mesh.VertexFormat",
"name": "a_uv0",
"type": 5126,
"num": 2,
"normalize": false
},
{
"__type__": "cc.mesh.Primitive",
"vertexBundleIndices": [
0
],
"data": {
"__id__": 7
},
"indexUnit": 5123,
"topology": 4
},
{
"__type__": "cc.BufferRange",
"offset": 34848,
"length": 12288
}
]
\ No newline at end of file
[
{
"__type__": "cc.Prefab",
"_name": "plane",
"_objFlags": 0,
"_native": "",
"data": {
"__id__": 1
},
"optimizationPolicy": 0,
"asyncLoadAssets": false,
"readonly": false
},
{
"__type__": "cc.Node",
"_name": "plane",
"_objFlags": 0,
"_parent": null,
"_children": [],
"_active": true,
"_components": [
{
"__id__": 2
}
],
"_prefab": {
"__id__": 3
},
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 0,
"height": 0
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
0,
0,
0,
0,
1,
1,
1,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": true,
"_groupIndex": 0,
"groupIndex": 0,
"_id": ""
},
{
"__type__": "cc.MeshRenderer",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 1
},
"_enabled": true,
"_materials": [
{
"__uuid__": "a5849239-3ad3-41d1-8ab4-ae9fea11f97f"
}
],
"_mesh": {
"__uuid__": "a1ef2fc9-9c57-418a-8f69-6bed9a7a0e7f"
},
"_receiveShadows": false,
"_shadowCastingMode": 0,
"_enableAutoBatch": false,
"textures": [],
"_id": ""
},
{
"__type__": "cc.PrefabInfo",
"root": {
"__id__": 1
},
"asset": {
"__uuid__": "3f376125-a699-40ca-ad05-04d662eaa1f2"
},
"fileId": "9fhEbTXI1IApxjLqbjx+1L",
"sync": false
}
]
\ No newline at end of file
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "default-particle",
"texture": "600301aa-3357-4a10-b086-84f011fa32ba",
"atlas": "",
"rect": [
2,
2,
61,
61
],
"offset": [
0.5,
-0.5
],
"originalSize": [
64,
64
],
"capInsets": [
0,
0,
0,
0
]
}
}
\ No newline at end of file
{
"__type__": "cc.EffectAsset",
"_name": "__builtin-editor-gizmo-line",
"_objFlags": 0,
"_native": "",
"properties": null,
"techniques": [
{
"passes": [
{
"stage": "transparent",
"blendState": {
"targets": [
{
"blend": true,
"blendEq": 32774,
"blendSrc": 770,
"blendDst": 1
}
]
},
"rasterizerState": {
"cullMode": 0
},
"depthStencilState": {
"depthTest": true
},
"properties": {
"diffuseColor": {
"value": [
1,
1,
1,
1
],
"editor": {
"type": "color"
},
"type": 16
}
},
"program": "__builtin-editor-gizmo-line|gizmo-line-vs|gizmo-line-fs:front"
},
{
"stage": "transparent",
"blendState": {
"targets": [
{
"blend": true,
"blendEq": 32774,
"blendSrc": 770,
"blendDst": 1
}
]
},
"rasterizerState": {
"cullMode": 0
},
"depthStencilState": {
"depthTest": true,
"depthFunc": 516
},
"properties": {
"diffuseColor": {
"value": [
1,
1,
1,
1
],
"editor": {
"type": "color"
},
"type": 16
}
},
"program": "__builtin-editor-gizmo-line|gizmo-line-vs|gizmo-line-fs:back"
}
]
}
],
"shaders": [
{
"hash": 2579669062,
"glsl3": {
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nattribute vec3 a_position;\nvoid main () {\n gl_Position = cc_matViewProj * cc_matWorld * vec4(a_position, 1);\n gl_Position.z -= 0.0001;\n}",
"frag": "\nprecision highp float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nuniform DIFFUSE_COLOR {\n vec4 diffuseColor;\n};\nvec4 front() {\n return CCFragOutput(diffuseColor);\n}\nout vec4 cc_FragColor;\nvoid main() { cc_FragColor = front(); }"
},
"glsl1": {
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nvoid main () {\n gl_Position = cc_matViewProj * cc_matWorld * vec4(a_position, 1);\n gl_Position.z -= 0.0001;\n}",
"frag": "\nprecision highp float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nuniform vec4 diffuseColor;\nvec4 front() {\n return CCFragOutput(diffuseColor);\n}\nvoid main() { gl_FragColor = front(); }"
},
"builtins": {
"globals": {
"blocks": [
{
"name": "CCGlobal",
"defines": []
}
],
"samplers": []
},
"locals": {
"blocks": [
{
"name": "CCLocal",
"defines": []
}
],
"samplers": []
}
},
"defines": [
{
"name": "OUTPUT_TO_GAMMA",
"type": "boolean",
"defines": []
}
],
"blocks": [
{
"name": "DIFFUSE_COLOR",
"members": [
{
"name": "diffuseColor",
"type": 16,
"count": 1
}
],
"defines": [],
"binding": 0
}
],
"samplers": [],
"record": null,
"name": "__builtin-editor-gizmo-line|gizmo-line-vs|gizmo-line-fs:front"
},
{
"hash": 2538316070,
"glsl3": {
"vert": "\nprecision highp float;\nuniform CCGlobal {\n mat4 cc_matView;\n mat4 cc_matViewInv;\n mat4 cc_matProj;\n mat4 cc_matProjInv;\n mat4 cc_matViewProj;\n mat4 cc_matViewProjInv;\n vec4 cc_cameraPos;\n vec4 cc_time;\n mediump vec4 cc_screenSize;\n mediump vec4 cc_screenScale;\n};\nuniform CCLocal {\n mat4 cc_matWorld;\n mat4 cc_matWorldIT;\n};\nattribute vec3 a_position;\nvoid main () {\n gl_Position = cc_matViewProj * cc_matWorld * vec4(a_position, 1);\n gl_Position.z -= 0.0001;\n}",
"frag": "\nprecision highp float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nuniform DIFFUSE_COLOR {\n vec4 diffuseColor;\n};\nvec4 back() {\n return CCFragOutput(vec4(diffuseColor.rgb, diffuseColor.a * 0.2));\n}\nout vec4 cc_FragColor;\nvoid main() { cc_FragColor = back(); }"
},
"glsl1": {
"vert": "\nprecision highp float;\nuniform mat4 cc_matViewProj;\nuniform mat4 cc_matWorld;\nattribute vec3 a_position;\nvoid main () {\n gl_Position = cc_matViewProj * cc_matWorld * vec4(a_position, 1);\n gl_Position.z -= 0.0001;\n}",
"frag": "\nprecision highp float;\nvec4 CCFragOutput (vec4 color) {\n #if OUTPUT_TO_GAMMA\n color.rgb = sqrt(color.rgb);\n #endif\n\treturn color;\n}\nuniform vec4 diffuseColor;\nvec4 back() {\n return CCFragOutput(vec4(diffuseColor.rgb, diffuseColor.a * 0.2));\n}\nvoid main() { gl_FragColor = back(); }"
},
"builtins": {
"globals": {
"blocks": [
{
"name": "CCGlobal",
"defines": []
}
],
"samplers": []
},
"locals": {
"blocks": [
{
"name": "CCLocal",
"defines": []
}
],
"samplers": []
}
},
"defines": [
{
"name": "OUTPUT_TO_GAMMA",
"type": "boolean",
"defines": []
}
],
"blocks": [
{
"name": "DIFFUSE_COLOR",
"members": [
{
"name": "diffuseColor",
"type": 16,
"count": 1
}
],
"defines": [],
"binding": 0
}
],
"samplers": [],
"record": null,
"name": "__builtin-editor-gizmo-line|gizmo-line-vs|gizmo-line-fs:back"
}
]
}
\ No newline at end of file
{
"__type__": "cc.Material",
"_name": "builtin-3d-particle",
"_objFlags": 0,
"_native": "",
"_effectAsset": {
"__uuid__": "829a282c-b049-4019-bd38-5ace8d8a6417"
},
"_techniqueData": {
"0": {
"props": {
"mainTexture": {
"__uuid__": "600301aa-3357-4a10-b086-84f011fa32ba"
},
"mainTiling_Offset": {
"__type__": "cc.Vec4",
"x": 1,
"y": 1,
"z": 0,
"w": 0
},
"tintColor": {
"__type__": "cc.Color",
"r": 172,
"g": 165,
"b": 165,
"a": 127
}
},
"defines": {
"CC_USE_BILLBOARD": true,
"CC_USE_STRETCHED_BILLBOARD": false,
"CC_USE_HORIZONTAL_BILLBOARD": false,
"CC_USE_VERTICAL_BILLBOARD": false,
"CC_USE_MESH": false
}
}
}
}
\ No newline at end of file
{
"__type__": "cc.Material",
"_name": "builtin-3d-trail",
"_objFlags": 0,
"_native": "",
"_effectAsset": {
"__uuid__": "2a7c0036-e0b3-4fe1-8998-89a54b8a2bec"
},
"_techniqueData": {
"0": {
"props": {
"mainTexture": {
"__uuid__": "0275e94c-56a7-410f-bd1a-fc7483f7d14a"
}
}
}
}
}
\ No newline at end of file
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "atom",
"texture": "d0a82d39-bede-46c4-b698-c81ff0dedfff",
"atlas": "",
"rect": [
0,
0,
31,
31
],
"offset": [
0,
0
],
"originalSize": [
31,
31
],
"capInsets": [
0,
0,
0,
0
]
}
}
\ No newline at end of file
{
"__type__": "cc.Texture2D",
"content": "0,9729,9729,33071,33071,0,0,1"
}
\ No newline at end of file
{
"__type__": "cc.Texture2D",
"content": "0,9729,9729,33071,33071,0,0,1"
}
\ No newline at end of file
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "default_scrollbar_vertical",
"texture": "d6d3ca85-4681-47c1-b5dd-d036a9d39ea2",
"atlas": "",
"rect": [
0,
0,
15,
30
],
"offset": [
0,
0
],
"originalSize": [
15,
30
],
"capInsets": [
4,
10,
4,
10
]
}
}
\ No newline at end of file
{
"__type__": "cc.SpriteFrame",
"content": {
"name": "default_scrollbar_vertical_bg",
"texture": "617323dd-11f4-4dd3-8eec-0caf6b3b45b9",
"atlas": "",
"rect": [
0,
0,
15,
30
],
"offset": [
0,
0
],
"originalSize": [
15,
30
],
"capInsets": [
4,
10,
4,
10
]
}
}
\ No newline at end of file
{
"__type__": "cc.Texture2D",
"content": "0,9729,9729,33071,33071,1,0,0"
}
\ No newline at end of file
{
"__type__": "cc.Texture2D",
"content": "0,9729,9729,33071,33071,0,0,1"
}
\ No newline at end of file
{
"__type__": "cc.Texture2D",
"content": "0,9729,9729,33071,33071,0,0,1"
}
\ No newline at end of file
{
"__type__": "cc.Texture2D",
"content": "0,9729,9729,33071,33071,0,0,1"
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment