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

大约有 843 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0042 秒)

61. 二次开发的问题 [ 77%]

...创建舞台 在创建一个对象 把对象加入到舞台中 laya.init(300,300) //这是舞台大小 var btn=new Laya.Spirte; Laya.stage.addChild(btn); btn.on() //这个就可以绑定事件

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

62. 游戏白屏问题 [ 77%]

... 游戏白屏问题一般要从哪方面排查呀? CPU占用50%,内存300M,这两项也不高呀,但会不定时白屏!   2017-09-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来...

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

63. 关于changeText的bug [ 76%]

...ngeText的bug var txt = new Laya.Text(); Laya.stage.addChild(txt); txt.pos(300,300,true); txt.width = 30; txt.fontSize = 30; txt.overflow = "hidden"; txt.changeText("这里是测试代码");//这里显示正常,hidden生效   txt.changeText("这里是测试代码1");//这里文字全部显示...

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

64. 文本-下划线 [ 76%]

...发行商\n面向AS/JS/TS开发者提供HTML5开发技术方案"; txt.size(300, 50); txt.fontSize = 20; txt.color = "#ffffff"; txt.align = align; // 设置下划线 txt.underline = true; txt.underlineColor = underlineColor; txt.pos(x, y); Laya.stage.addChild(txt); return txt; } })();module laya { im...

来源: Laya_示例 发布时间: 20241002

65. 2D物理-桥 [ 76%]

...pointRB1; let width = 20, height = 2.5; for (let i = 0; i { let targetX = (300 + Math.random() * 400) / Laya.Physics.PIXEL_RATIO, targetY = 500 / Laya.Physics.PIXEL_RATIO; let newBall = new Laya.Sprite(); Laya.Laya.stage.addChild(newBall); let circleBody = newBall.addComponent(Laya.RigidBody); circl...

来源: Laya2.0_示例 发布时间: 20241002

66. 文本-下划线 [ 76%]

...发行商\n面向AS/JS/TS开发者提供HTML5开发技术方案"; txt.size(300, 50); txt.fontSize = 20; txt.color = "#ffffff"; txt.align = align; // 设置下划线 txt.underline = true; txt.underlineColor = underlineColor; txt.pos(x, y); return txt; } } new Text_Underline();module laya { import Sta...

来源: Laya2.0_示例 发布时间: 20241002

67. 图片资源销毁的问题 [ 76%]

...改哪里的问题 maomaolw3 • 2018-04-24 11:36 我把引擎底层改成300 x 300了, 不会有别的问题把?

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

68. laya.effect.ButtonEffect_API3.0 [ 76%]

...type:number, tips:"缩放值",default:"1.5"} tweenTime tweenTime: number = 300 Defined in laya/effect/ButtonEffect.ts:25 tweenTime prop {name:tweenTime,type:number, tips:"缓动时长",default:"300"} Accessors target set target(tar: Sprite): void Defined in laya/effect/ButtonEffect.ts:41 设置控...

来源: Laya3.0_api 发布时间: 20231115

69. 使用loadImage加载一个图片后的点击事件 [ 76%]

...; var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage(img,360, 300, 60, 60, Laya.Handler.create(this, function(){         ape.on(Laya.Event.CLICK, this, function(){         console.log(111)     }) }));使用这段代码加载了一个60x60大小的图片(下图中骑马的那...

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

70. IDE创建动画调用问题 [ 75%]

...oaded():void { //实例UI界面 var ani:Animation=new Animation(); ani.pos(300,300); Laya.stage.addChild(ani); ani.loadAnimation("AAA.ani",Handler.create(this,onLoadedAni,[ani])); } private function onLoadedAni(ani:Animation):void { ani.play(0,true); trace(ani.frames); }在加载完成之后去获...

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