Commit e9a1a43a authored by Chen Jiping's avatar Chen Jiping

fix:修复显示

parent b183f6c6
...@@ -1233,15 +1233,15 @@ ...@@ -1233,15 +1233,15 @@
}, },
"_anchorPoint": { "_anchorPoint": {
"__type__": "cc.Vec2", "__type__": "cc.Vec2",
"x": 0.5, "x": 0,
"y": 0.5 "y": 1
}, },
"_trs": { "_trs": {
"__type__": "TypedArray", "__type__": "TypedArray",
"ctor": "Float64Array", "ctor": "Float64Array",
"array": [ "array": [
-383.60799999999995, -642.108,
298.361, 362.361,
0, 0,
0, 0,
0, 0,
......
...@@ -310,6 +310,8 @@ cc.Class({ ...@@ -310,6 +310,8 @@ cc.Class({
*/ */
const titleBgNode = cc.find('Canvas/title_bg'); const titleBgNode = cc.find('Canvas/title_bg');
console.log(titleBgNode);
const labelNode = new cc.Node(); const labelNode = new cc.Node();
labelNode.parent = titleBgNode; labelNode.parent = titleBgNode;
const label = labelNode.addComponent(cc.RichText); const label = labelNode.addComponent(cc.RichText);
......
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