修正不同纹理宽高比例下uv单位值

This commit is contained in:
caizhitao
2020-06-23 15:15:55 +08:00
parent 97d4af5d69
commit eb0023a3c4
9 changed files with 315 additions and 21 deletions

View File

@@ -78,13 +78,13 @@
"_active": true,
"_components": [
{
"__id__": 126
"__id__": 130
},
{
"__id__": 127
"__id__": 131
},
{
"__id__": 128
"__id__": 132
}
],
"_prefab": null,
@@ -174,7 +174,7 @@
"array": [
0,
0,
415.97635840214735,
416.1116748714887,
0,
0,
0,
@@ -254,7 +254,7 @@
"_active": true,
"_components": [
{
"__id__": 125
"__id__": 129
}
],
"_prefab": null,
@@ -5181,15 +5181,21 @@
},
{
"__id__": 121
},
{
"__id__": 123
},
{
"__id__": 125
}
],
"_active": true,
"_components": [
{
"__id__": 123
"__id__": 127
},
{
"__id__": 124
"__id__": 128
}
],
"_prefab": null,
@@ -5336,7 +5342,7 @@
},
{
"__type__": "cc.Node",
"_name": "cocos_logo",
"_name": "sushi_1",
"_objFlags": 0,
"_parent": {
"__id__": 114
@@ -5357,6 +5363,194 @@
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 639,
"height": 287
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-249.04999999999998,
0,
0,
0,
0,
1,
0.5,
0.5,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "8a1dgfWGBBmIPp6Cvii1C6"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 117
},
"_enabled": true,
"_materials": [
{
"__uuid__": "ed801db5-01ea-4505-b505-e661a3f1bb07"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "8eb18f86-2d97-4fbf-8d69-c5dd52df4a13"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "9b1oKjhJxMSrg6qauxRc5V"
},
{
"__type__": "cc.Node",
"_name": "giraffe_1",
"_objFlags": 0,
"_parent": {
"__id__": 114
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 120
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 300,
"height": 640
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
-516.8,
0,
0,
0,
0,
1,
0.5,
0.5,
1
]
},
"_eulerAngles": {
"__type__": "cc.Vec3",
"x": 0,
"y": 0,
"z": 0
},
"_skewX": 0,
"_skewY": 0,
"_is3DNode": false,
"_groupIndex": 0,
"groupIndex": 0,
"_id": "7ditFS1Y9KmpSmca6NZFy3"
},
{
"__type__": "cc.Sprite",
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 119
},
"_enabled": true,
"_materials": [
{
"__uuid__": "ed801db5-01ea-4505-b505-e661a3f1bb07"
}
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_spriteFrame": {
"__uuid__": "ca4c5d38-6446-45f6-88fc-2300852051f9"
},
"_type": 0,
"_sizeMode": 1,
"_fillType": 0,
"_fillCenter": {
"__type__": "cc.Vec2",
"x": 0,
"y": 0
},
"_fillStart": 0,
"_fillRange": 0,
"_isTrimmedMode": true,
"_atlas": null,
"_id": "1eCplTTO9BSJ6wePyWwtmu"
},
{
"__type__": "cc.Node",
"_name": "cocos_logo",
"_objFlags": 0,
"_parent": {
"__id__": 114
},
"_children": [],
"_active": false,
"_components": [
{
"__id__": 122
}
],
"_prefab": null,
"_opacity": 255,
"_color": {
"__type__": "cc.Color",
"r": 255,
"g": 255,
"b": 255,
"a": 255
},
"_contentSize": {
"__type__": "cc.Size",
"width": 195,
@@ -5401,7 +5595,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 117
"__id__": 121
},
"_enabled": true,
"_materials": [
@@ -5439,7 +5633,7 @@
"_active": false,
"_components": [
{
"__id__": 120
"__id__": 124
}
],
"_prefab": null,
@@ -5495,7 +5689,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 119
"__id__": 123
},
"_enabled": true,
"_materials": [
@@ -5533,7 +5727,7 @@
"_active": false,
"_components": [
{
"__id__": 122
"__id__": 126
}
],
"_prefab": null,
@@ -5589,7 +5783,7 @@
"_name": "",
"_objFlags": 0,
"node": {
"__id__": 121
"__id__": 125
},
"_enabled": true,
"_materials": [