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

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

121. 性能测试-卡通人物2 [ 49%]

...prototype.createNameLabel = function() { nameLabel = new Text(); nameLabel.color = "#FFFFFF"; nameLabel.text = "Default"; nameLabel.fontSize = 13; nameLabel.width = Character.WIDTH; nameLabel.align = "center"; this.addChild(nameLabel); } Character.prototype.setSpeed = function(value) { this.speed = ...

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

122. 性能测试-卡通人物2 [ 48%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Stat.enable(); Laya.stage.loadImage("res/cartoon2/background.jpg", 0, 0, 1280, 900); this.createCharacters(); text = new Text(); text.zOrder = 10000; text.fo...

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

123. HTMLIframeElement报错 [ 48%]

...ize:20px;     line-height:38px;     font-family:"微软雅黑";     color:#000;     text-align:justify;         text-justify:inter-ideograph;     -webkit-text-align-last:justify;/*chrome 20+*/     -moz-text-align-last:justify;/*ff*/ } 2018-01-03 0 0 分享 微博 QZONE 微信 Lay...

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

124. 发布h5项目,在浏览器上初始加载资源过多导致卡顿怎么优化 [ 47%]

...文本内容 txt.text = "hello_world"; //设置文本颜色 txt.color = "#ffffff"; Laya.stage.addChild(txt); yaorao • 2018-03-30 11:39 @qian:看了下 lib目录的文件有6M左右。会是因为加载这个目录导致的嘛? qian • 2018-03-30 11:54 不确定 但是你可...

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

125. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 47%]

...ransform.d)}); } } } 会报错: Uncaught TypeError: Cannot read property '_color' of null at WebGLContext2D.__proto.stroke (laya.js:17440) at RenderContext._drawLine (laya.js:4738) at GraphicsGL.__proto._renderAll (laya.js:987) at RenderSprite3D.__proto._graphics (laya.js:5234) at RenderSprite3D.Ren...

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

126. JSON文件加载成功后,怎么解析成Object对象 [ 47%]

...tage.height); txt.pos(10, 10); txt.fontSize = 30; txt.wordWrap = true; txt.color = "#FF9632"; Laya.stage.addChild(txt); var test:Object = JSON.parse('{"id": 0, "name": "Chen"}'); traceMsg(test['id']); traceMsg(test['name']); var jsonURL:String = "res/json/config.json"; traceMsg("加载: " + jsonURL)...

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

127. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 46%]

...p; (this._bitmap.source=this._sources[index]); if (this.label){ this._text.color=this._labelColors[index]; if (this._strokeColors)this._text.strokeColor=this._strokeColors[index]; } } __proto.changeClips=function(){ var img=Loader.getRes(this._skin); if (!img){ console.log("lose skin",this._skin); r...

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

128. TextInput 在panle里滚动后输入位置错乱,求解 [ 45%]

...    Laya.stage.scaleMode = "showall";             Laya.stage.bgColor = "#232628";                          createInput();         }                  private function createInput():void         {             panel = new Panel();      ...

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

129. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 45%]

...ction LayaUISample() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp:Sprite = new Sprite(); sp.loadImage(data,0,0,200,200); Laya.stage.addChild(sp); } } } ``` 通过data来...

来源: Laya2.0_文档 发布时间: 20210715

130. 插件开发说明 · LayaAir3.0文档 · LAYABOX [ 44%]

...。 export interface IGUIUtils { /** * 编辑器默认的背景颜色 */ bgColor: gui.Color; /** * 编辑器默认的分割线颜色 */ lineColor: gui.Color; /** * 编辑器默认的文字颜色 */ textColor: gui.Color; createButton(autoSize?: boolean): gui.Button; createIconButton(flat?: boolean): ...

来源: Laya3.0_文档 发布时间: 20240918