Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
287 changes: 275 additions & 12 deletions assets/cases/07_render_texture/render_to_sprite.fire
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
},
"_scale": {
"__type__": "cc.Vec3",
"x": 0.796875,
"y": 0.796875,
"x": 0.3828125,
"y": 0.3828125,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 scale 值的含义是什么,我没手动调整过 scale,它自己减半

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没关系,这是场景在编辑器中的缩放,无关紧要

"z": 1
},
"_quat": {
Expand All @@ -52,7 +52,7 @@
"z": 0,
"w": 1
},
"_localZOrder": 10,
"_zIndex": 0,
"groupIndex": 0,
"autoReleaseAssets": false,
"_id": "162e0445-d645-4470-bc67-086eb9385618"
Expand All @@ -79,16 +79,19 @@
},
{
"__id__": 13
},
{
"__id__": 15
}
],
"_active": true,
"_level": 0,
"_components": [
{
"__id__": 15
"__id__": 21
},
{
"__id__": 16
"__id__": 22
}
],
"_prefab": null,
Expand Down Expand Up @@ -133,7 +136,7 @@
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 11,
"_zIndex": 0,
"groupIndex": 0,
"_id": "a65knO45VE55L03V3lckcR"
},
Expand Down Expand Up @@ -194,7 +197,7 @@
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 12,
"_zIndex": 0,
"groupIndex": 0,
"_id": "acht+Rlh9O5YSJXeah1H0m"
},
Expand Down Expand Up @@ -281,7 +284,7 @@
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 13,
"_zIndex": 0,
"groupIndex": 0,
"_id": "5fAYCOtoBFhp7+NOuCN73E"
},
Expand Down Expand Up @@ -342,7 +345,7 @@
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 14,
"_zIndex": 0,
"groupIndex": 0,
"_id": "68e7IARiZCzLEQU8gjYi+x"
},
Expand Down Expand Up @@ -459,7 +462,7 @@
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 15,
"_zIndex": 0,
"groupIndex": 0,
"_id": "8fk7WDPmBKIL2m4iMMY2Oo"
},
Expand Down Expand Up @@ -542,7 +545,7 @@
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 16,
"_zIndex": 0,
"groupIndex": 2,
"_id": "5aw4DcvnJPupPVspAq+pwq"
},
Expand Down Expand Up @@ -629,7 +632,7 @@
},
"_skewX": 0,
"_skewY": 0,
"_localZOrder": 17,
"_zIndex": 0,
"groupIndex": 0,
"_id": "8dK3OG0p9M9KHMSAVcgzSy"
},
Expand All @@ -655,6 +658,266 @@
"_targetTexture": null,
"_id": "36YtsiUhlOP6mS27hH7qX/"
},
{
"__type__": "cc.Node",
"_name": "Save",
"_objFlags": 0,
"_parent": {
"__id__": 2
},
"_children": [
{
"__id__": 16
}
],
"_active": true,
"_level": 1,
"_components": [
{
"__id__": 18
},
{
"__id__": 19
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": -201,
"y": -225,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"_zIndex": 0,
"groupIndex": 0,
"_id": "ab0DYQ/DxOgpX70oUjRv+r"
},
{
"__type__": "cc.Node",
"_name": "Label",
"_objFlags": 0,
"_parent": {
"__id__": 15
},
"_children": [],
"_active": true,
"_level": 0,
"_components": [
{
"__id__": 17
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 0,
"g": 0,
"b": 0,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 100,
"height": 40
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_position": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_scale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"z": 1
},
"_rotationX": 0,
"_rotationY": 0,
"_quat": {
"__type__": "cc.Quat",
"x": 0,
"y": 0,
"z": 0,
"w": 1
},
"_skewX": 0,
"_skewY": 0,
"_zIndex": 0,
"groupIndex": 0,
"_id": "b4u6XLVq9M8qsmYPd7sHkl"
},
{
"__type__": "cc.Label",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 16
},
"_enabled": true,
"_srcBlendFactor": 1,
"_dstBlendFactor": 771,
"_useOriginalSize": false,
"_string": "Save",
"_N$string": "Save",
"_fontSize": 20,
"_lineHeight": 40,
"_enableWrapText": false,
"_N$file": null,
"_isSystemFontUsed": true,
"_spacingX": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 1,
"_id": "6b/yAH6FFDJLg3lnWnaPYG"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
},
"_enabled": true,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_type": 1,
"_sizeMode": 0,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_state": 0,
"_atlas": null,
"_id": "5fxmXHSy1CDZJQEZZpBuXF"
},
{
"__type__": "cc.Button",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 15
},
"_enabled": true,
"transition": 2,
"pressedColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"hoverColor": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"duration": 0.1,
"zoomScale": 1.2,
"clickEvents": [
{
"__id__": 20
}
],
"_N$interactable": true,
"_N$enableAutoGrayEffect": false,
"_N$normalColor": {
"__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__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"pressedSprite": {
"__uuid__": "e9ec654c-97a2-4787-9325-e6a10375219a"
},
"_N$hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"hoverSprite": {
"__uuid__": "f0048c10-f03e-4c97-b9d3-3506e1d58952"
},
"_N$disabledSprite": {
"__uuid__": "29158224-f8dd-4661-a796-1ffab537140e"
},
"_N$target": {
"__id__": 15
},
"_id": "e8raAiQtpLWYICTi2VnLhH"
},
{
"__type__": "cc.ClickEvent",
"target": {
"__id__": 2
},
"component": "render_to_sprite",
"handler": "saveImage",
"customEventData": ""
},
{
"__type__": "cc.Canvas",
"_name": "",
Expand Down
Loading