• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 382 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0038 秒)

281. 运行第一个hello,一直黑屏,没有东西显示出来 如何解决? [ 53%]

.../设置文本内容 txt.text = "Hello"; //设置文本颜色 txt.color = "#FF0000"; //设置文本字体大小,单位是像素 txt.fontSize = 66; //设置字体描边 txt.stroke = 5;//描边为5像素 txt.strokeColor = "#FFFFFF"; //设置为粗体 txt.bold = true; //设置文本的显示起点位...

来源: Laya_社区 发布时间: 20171019

282. 在 tiledmap 插入一个精灵在上面 [ 53%]

...{   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

283. 关于新手引导 [ 53%]

...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

284. ui组件list数据源的疑问 [ 53%]

...多个属性赋值的话可以写arr.push({label: {text:"item"+i,color:"#FF0000"},clip: i % 9}); 2017-05-03 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 tanglijiong 相关问题 List滑动条会引起单元格上的按钮点击后多...

来源: Laya_社区 发布时间: 20170503

285. 问一下这个问题要怎么改啊? [ 53%]

...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

286. 使用graphics.drawPath方法绘制带边框圆角矩形出现的问题 [ 53%]

...        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

287. HtmlDivElement 描边和下划线不能同时使用 [ 53%]

...测没问题,   代码:<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

288. 2.0字体比较小的时候,某些字显示不全 [ 53%]

...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

289. graphics如何实现橡皮擦效果 [ 53%]

...色方块 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

290. 射线检测-选取物体 [ 53%]

...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