大约有 382 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0038 秒)
Laya_社区(258) Laya2.0_文档(42) Laya3.0_文档(24) Laya_示例(22) Laya2.0_示例(19) Laya3.0_api(10) Laya2.0_api(6) laya_api(1)
.../设置文本内容 txt.text = "Hello"; //设置文本颜色 txt.color = "#FF0000"; //设置文本字体大小,单位是像素 txt.fontSize = 66; //设置字体描边 txt.stroke = 5;//描边为5像素 txt.strokeColor = "#FFFFFF"; //设置为粗体 txt.bold = true; //设置文本的显示起点位...
来源: Laya_社区 发布时间: 20171019
...{ this.sp=new Laya.Sprite(); this.sp.graphics.drawRect(0,0,100,100,"#FF0000"); var mapLayer = this.tiledMap.getLayerByIndex(1); console.info(mapLayer.layerName); this.sp.pos(0,0); mapLayer._childs[0].addChild(this.sp); } } new GameInfo(); 遇到的问题1 把精灵插入...
来源: Laya_社区 发布时间: 20171125
...actionArea.graphics.drawCircle(Laya.stage.mouseX, Laya.stage.mouseY, 30, "#ff0000"); } private function upHandler():void { trace("KouTu.upHandler()"); // box.stopDrag(); gameContainer.off(Event.MOUSE_MOVE, this, moveHandler); } private function downHandler():void { trace("KouTu.downHandler()"); // b...
来源: Laya_社区 发布时间: 20170315
...多个属性赋值的话可以写arr.push({label: {text:"item"+i,color:"#FF0000"},clip: i % 9}); 2017-05-03 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 tanglijiong 相关问题 List滑动条会引起单元格上的按钮点击后多...
来源: Laya_社区 发布时间: 20170503
...0, 0); var txt:Text = new Text(); txt.text = "Fishing Game"; txt.color = "#FFFFFF"; txt.fontSize = 60; txt.stroke = 5; txt.strokeColor = "#FF0000"; txt.pos(60,100); txt.bold = true; Laya.stage.addChild(txt); } } }但是提示参数数量不正确 这个问题要怎么解决呢? 附件 : --> 201...
来源: Laya_社区 发布时间: 20170522
... this.container.graphics.drawPath(100, 100, path, {fillStyle: "#ff0000"},{"strokeStyle":"#ffffff","lineWidth":"1","lineJoin":"miter","lineCap":"round","miterLimit":1}); 附件 : --> 2017-03-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20170320
...测没问题, 代码:<div style='width:300px;height:100px;color:#ff0000;font-size:25px;font-family:SimSun;vertical-align:bottom;line-height:20px;'> <p><span style='font-weight:bold;stroke:3px; font:24px Arial' color='red' href='https://ask.layabox.com/'> LayaBox</span>...
来源: Laya_社区 发布时间: 20220916
...le() { //初始化引擎 Laya.init(480, 640,WebGL); Laya.stage.bgColor = "#FFFF33"; var txt:Text = new Text(); //给文本的text属性赋值 txt.text = "gggggqqqqqqqyyyyyyyvvvv"; txt.align = "center"; txt.fontSize = 15; txt.font = "Microsoft YaHei"; txt.color = "#ff0000"; txt.leading = 5; txt.x = (...
来源: Laya_社区 发布时间: 20190606
...色方块 var red = new Sprite(); red.graphics.drawRect(0, 0, 150, 150, "#ff0000"); box.addChild(red); // 绘制一个圆形区域,利用叠加模式,抠除上面红色区域 var circle = new Sprite(); circle.graphics.drawCircle(0, 0, 50, "#000"); circle.pos(50, 50); // 设置叠加模式 circle...
来源: Laya_社区 发布时间: 20170707
...sh(6, 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var boxCollider = plane.addComponent(Laya.BoxCollider...
来源: Laya_示例 发布时间: 20251209