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

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

101. 文本-滚动文本 [ 63%]

...商,面向AS/JS/TS开发者提供HTML5开发技术方案!"; this.txt.size(200, 100); this.txt.x = Laya.stage.width - this.txt.width >> 1; this.txt.y = Laya.stage.height - this.txt.height >> 1; this.txt.borderColor = "#FFFF00"; this.txt.fontSize = 20; this.txt.color = "#ffffff"; this.txt.on(Event...

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

102. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 63%]

...dth = 512;             spe.height = 512;             spe.size(512, 512);             Laya.stage.addChild(spe);             spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333");             spe.on(Event.MOUSE_DOWN, spe, onMouseDown);         ...

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

103. 2D物理-碰撞事件与传感器 [ 63%]

... var sp = new Sprite(); Laya.stage.addChild(sp); sp.pos(350 + i * 50, 200).size(40, 40); var rb: RigidBody = sp.addComponent(RigidBody); this.bodys.push(rb); this.touching[i] = false; rb.getBody().SetUserData({pointer: i}); var circleCollider: CircleCollider = sp.addComponent(CircleCollider); circle...

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

104. dragonbones,滤镜显示不正常 [ 62%]

...放完一遍后就会消失  同时控制台不断地输出cache bitmap size larger than 2048,cache ignored,直至卡死     2018-06-14 0 0 分享 微博 QZONE 微信 136*****187 赞同来自: 另外变色滤镜ColorFilter也是完全没效果的  不知道是不是我的设置bounds方式不...

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

105. 有时候加载一大堆资源的时候某个个别图片资源加载失败如何处理 [ 62%]

...数组:["a.png","b.png"];复杂数组[{url:"a.png",type:Loader.IMAGE,size:100,priority:1},{url:"b.json",type:Loader.JSON,size:50,priority:1}]。          * @param    complete    加载结束回调。根据url类型不同分为2种情况:1. url为String类型,也就是单个资源...

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

106. toFixed(0)函数是什么作用? [ 61%]

toFixed(0)函数是什么作用? text = new Text(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; 2018-03-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

107. 关于LayaBox启动的问题。 [ 61%]

...aBox (12689): >>>>>>>>>>>>>bGLCanvasSizeChanged w=1920 h= 1080 I/LayaBox (12689): >>>>>>>>>>>>>>>>innerWidth:1920innerHeight:1080 I/GlobalPushManager( 4888): checkPollAndPopSend --> mSenderInfo = SenderInfo{mSe...

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

108. 我看到这段话后,我 [ 61%]

...  //任意属性赋值     dataSource={label2:{text:"改变了label",size:14},checkbox2:{selected:true,x:10}};     */     __getset(0,__proto,'dataSource',function(){         return this._dataSource;         },function(value){         this._dataSource=value;   ...

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

109. laya.html.dom.HTMLDivElement [ 61%]

...是粗体 letter-spacing:10px; 字间距 font-family:宋体; 字体 font-size:20px; 字体大小 font-weight:bold:none; 字体是否是粗体,功能同bold color:#ff0000; 字体颜色 stroke:2px; 字体描边宽度 strokeColor:#ff0000; 字体描边颜色 padding:10px 10px 20px 20px; 边缘的距...

来源: Laya2.0_api 发布时间: 20190513

110. laya.sprite 不接受click事件 [ 60%]

...ssets/image/0.jpg'); //this._firstSprite.scale(0.3,0.3); this._firstSprite.size(200,200); //this._firstSprite.pivotX = 0;//设置 sprite 对象的水平方法轴心点坐标。 //this._firstSprite.pivotY = 0;//设置 sprite 对象的垂直方法轴心点坐标。 //this._firstSprite.mouseEnabled = t...

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