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

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

431. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 82%]

... * 背景类 * */ function Background(){ //图片的宽度 this.BG_WIDTH = 1600; //记录当前移动的值 this.moveX = 0; //定义背景1 this.bg1 = null; //定义背景2 this.bg2 = null; //草堆 this.grass = null; Background.__super.call(this); this.init(); } //Background 是一个显示对象 ...

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

432. drawToTexture 绘制函数不工作呢 [ 82%]

..._rect.x = 0;         top_rect.y = 0;         top_rect.size(100, 100);         top_rect.graphics.drawRect(0, 0, 100, 100, "#0000FF", "#000000", 1);          Laya.stage.addChild(top_rect);          let rect_bottom: Laya.Sprite = new Laya.Sprite();       ...

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

433. laya的hitTestPoint没有第三个参数吗,只检测到矩形碰撞?惨了我as3人物的精确碰撞都靠第三个参数 怎么改装成h5? [ 82%]

... (true) 的实际像素,还是检查边框 (false) 的实际像素。 2017-11-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ymsdandan 赞同来自: 我们API中没有第三个参数,因为像素级的碰...

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

434. 高级应用-寻路导航 [ 82%]

...osition = new Laya.Vector3(0, 0, 0); this._upVector3 = new Laya.Vector3(0, 1, 0); this._tarPosition = new Laya.Vector3(0, 0, 0); this._finalPosition = new Laya.Vector3(0, 0, 0); this._quaternion = new Laya.Quaternion(); this.index = 0; this.curPathIndex = 0; this.nextPathIndex = 1; this.pointCount =...

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

435. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 82%]

...ndex.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.Tree)。 ### 1.1 Tree 组件主要由两个部分组成: - 项单元格(可以是 Box 、页面 View、自定义页面); - 纵向滚动条 VScrollBar; ### 1.2 Tree 组件的单元格通常由四部分组成: - 一个单元格...

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

436. laya.ui.Label_API3.0 [ 82%]

...。 label.wordWrap = true;//设置 label 自动换行。 label.padding = "10,10,10,10";//设置 label 的边距。 label.color = "#ff00ff";//设置 label 的颜色。 label.text = "Hello everyone,我是一个可爱的文本!";//设置 label 的文本内容。 label.x = 100;//设置 label 对象的...

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

437. 新版的ide发布的问题,,, [ 82%]

新版的ide发布的问题,,, 1.x的时候,文件提取,只是把选择的文件提取到指定的文件夹, 2.x的提取本地包,是先把指定的文件清空,然后在拷贝过去,,  这个能不能像1.x版本那样,,不清空指定的文件,,直接拷贝复制就...

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

438. laya.filters.ColorFilter_API3.0 [ 82%]

...ss(brightness: number): ColorFilter Defined in laya/filters/ColorFilter.ts:115 调整亮度 Parameters brightness: number 亮度,范围:-100~100 Returns ColorFilter this adjustColor adjustColor(brightness: number, contrast: number, saturation: number, hue: number): ColorFilter Defined in laya/filter...

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

439. 缓动画Bug,给了回调函数之后是直接过时间后执行回调函数,但是之前的缓动画不会执行 [ 82%]

...;200  y:0->200不会执行  是什么原因??????     2017-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: Laya.Tween.to(this.testAnimation,{x:200,y:200},2000,null,...

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

440. laya.resource.RenderTexture2D [ 82%]

...exture  clear(r:Number = 0.0, g:Number = 0.0, b:Number = 0.0, a:Number = 1.0):voidRenderTexture2D  end():void 结束绑定。 RenderTexture2D  generateMipmap():void[override] 生成mipMap。 RenderTexture2D  getData(x:Number, y:Number, width:Number, height:Number):Uint8Array 获得像素数...

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