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

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

1041. laya.ui.DialogManager [ 50%]

...Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawText...

来源: laya_api 发布时间: 20170929

1042. laya.display.Input [ 50%]

...Flash机制不同 Sprite  maxChars : int 字符数量限制,默认为10000。 设置字符数量限制时,小于等于0的值将会限制字符数量为10000。 Input maxScrollX : int[read-only] 获取横向可滚动最大值。 Text maxScrollY : int[read-only] 获取纵向可滚动最大值...

来源: laya_api 发布时间: 20170929

1043. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...// 添加网格 mesh2Drender.sharedMesh = this.generateCircleVerticesAndUV(100, 100); let tex = Laya.loader.getRes("resources/layabox.png"); mesh2Drender.texture = tex; // mesh2Drender.color = new Laya.Color(0.8, 0.15, 0.15, 1); // mesh2Drender.lightReceive = true; } /** * 生成一个圆形2D网格...

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

1044. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 50%]

...yerHB.x += this.bb; console.log( this.playerHB.x); if(this.playerHB.x > 1000) { this.bb *= -1; } if(this.playerHB.x < -100) { this.bb *= -1; } } 控制一直6像素来回移动 它就会出现颤抖 不管几像素都会 附件 : --> testLaya.zip 2018-01-02 添加评论 免费帖 --> 分享 ...

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

1045. Laya.Sprite loadImage 参数问题 [ 50%]

...台背景色 Laya.stage.bgColor = "#ffffff"; //原始位图 this.createImg(100,50); //红色滤镜 this.creteRedFilter(); //灰色滤镜 this.createGrayFilter(); } /**创建位图**/ private createImg(w:number,h:number):Laya.Sprite{ var Img:Laya.Sprite = new Laya.Sprite(); //添加到舞台 Laya.sta...

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

1046. 射线BUG [ 50%]

...aya.PhasorSpriter3D(); this.camera = this.addChild(new Laya.Camera(0, 0.1, 100)); this.camera.transform.translate(new Laya.Vector3(0, 1, 3)); //camera.addComponent(CameraMoveScript); this.camera.clearColor = null; } Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); MousePickingScene.pr...

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

1047. laya.ani.swf.MovieClip [ 50%]

...Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawText...

来源: laya_api 发布时间: 20170929

1048. 1.7.13 版本 musicVolume 和setMusicVolume 设置音量 音乐会重新从开始播放 [ 50%]

...ic function yyHSliderChanged(parm):void { SoundManager.setMusicVolume(parm/100); } bgSound.rar 2018-03-30 0 7 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 snowwolfdog 相关问题 LayaAir3D UnityPlugin 使用须知-版本更新-问题解...

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

1049. 分享:LayaAir下如何获取图集下的小图资源? [ 50%]

.../01.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture,200,100); Laya.stage.addChild(sp); } } } 小图路径请参考.json文件的参数 ,直接prefix的值加上小图名称即可获取到   2016-07-07 1 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该...

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

1050. 微信浏览器,input输入完成后,游戏不能还原 [ 50%]

...e.addChild(scene);  var inputText = new Laya.Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - 400; inputText.y = Laya.stage.height * 0.4; // 移动端输入提示符 inputText.prompt = "Type some word...";  // 设置字体样式 inputText.bold = true; inputText.bgColor = "#66666...

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