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

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

671. list 加载动画为什么实现的效果会错乱掉? [ 63%]

...ist.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya.stage.width - WID * list.repeatY) / 2 - 100; list.y = (Laya.stage.height - HEI ) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.rend...

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

672. 关于DrawCall和Shader数量的疑问 [ 63%]

...程如下图   实现的伪代码如下:_container = new Sprite(); Laya.stage.addChild(_container); _container.cacheAs = "normal"; private function createCity(worldMapData:Object):void { var itemObj:Object; for(var i:int = 0 ; i < worldMapData.items.length ; i++) { itemObj = worldMapData.items...

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

673. laya.events.MouseManager_API3.0 [ 62%]

...段、目标阶段、冒泡阶段。 捕获阶段:此阶段引擎会从stage开始递归检测stage及其子对象,直到找到命中的目标对象或者未命中任何对象; 目标阶段:找到命中的目标对象; 冒泡阶段:事件离开目标对象,按节点层级向上逐层...

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

674. 想绘制一个自适应得圆角矩形框,失败了,求解惑 [ 62%]

... var login = (function(_super){ function login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10], ["actTo...

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

675. 使用3D摄像机 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

....x; this._rayViewport.y = this.viewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代码,当鼠...

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

676. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 62%]

...列表。 **示例代码:** ```javascript package { import laya.display.Stage; import laya.ui.Box; import laya.ui.Image; import laya.ui.List; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_List { //列表对应图片的路径 private var data:Array = [ "../../../../res/ui/list...

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

677. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序不一致的问题! [ 62%]

...示对象 public function MouseOver_mouseOut() { Laya.init(600,400); Laya.stage.bgColor='#EEFFCC'; arr=; var sp1:Sprite=new Sprite(); sp1.autoSize=true; sp1.name='sp1'; sp1.graphics.drawRect(0,0,100,100,"#FF0000"); var sp2:Sprite=new Sprite(); sp2.autoSize=true; sp2.name='sp2'; sp2.graphics.drawRect...

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

678. 关于LayaBox 2.0后loadImage改了后要用什么来绘制base64 [ 62%]

...p: Laya.Sprite = new Laya.Sprite();sp.loadImage(data, 0, 0, 200, 200);Laya.stage.addChild(sp); 但现在2.0的loadImage 的 data 就只会被默认为url了, var sp: Laya.Sprite = new Laya.Sprite();sp.loadImage(data);Laya.stage.addChild(sp); 本来1.0时loadImage这个方法中的data参数不...

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

679. Laya.MovieClip() new的时候崩溃了,在线等,很急!!!! [ 62%]

...a.MovieClip(); this.swfAni.load(strSWF,true,strImg); this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.swfAni.play(0,false); this.swfAni.visible = true; this.swfAni.on(laya.events.Event.COMPLETE, this,...

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

680. 简单粒子效果,发布成单机版apk在移动端安装运行,结果显示不出来 [ 62%]

...start();                  sp.play();             Laya.stage.addChild(sp);                      sp.x = Laya.stage.width / 2;             sp.y = Laya.stage.height / 2;         }   发布成单机版apk在移动端安装运行,移动端报错提示...

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