大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0080 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...vents.Event; // 创建TestPageUI的子类 function TestUI() { TestUI.super(this); //list赋值,先获得一个数据源数组 var arr = ; for (var i = 0; i < 100; i++) { arr.push({label: "item " + i, clip: i % 9,btn:"btn"+i}); } //给list赋值更改list的显示 this.list.array = arr; //给lis...
来源: Laya_社区 发布时间: 20170513
如何动态获取image的宽高? var thisp:Point=new Point((this.width*this.scaleX)/2,(this.height*this.scaleY)/2); //thisp=this.globalToLocal(this.localToGlobal(thisp)); //trace(thisp.x,thisp.y,"dddddddd") var tf:Matrix=new Matrix(); tf.translate(-thisp.x,-thisp.y); __jd+=jd; tf.rotate(__jd); t...
来源: Laya_社区 发布时间: 20161124
...的链接 提交 3 个回复 一&漠 赞同来自: // 阴影部分 this.light.shadowMode = Laya.ShadowMode.Hard; this.light.shadowDistance = 10; this.light.shadowNearPlane = 5; this.light.shadowDepthBias = 1; this.light.shadowNormalBias = 5; this.light.shadowResolution = 2048; // 小米8 i...
来源: Laya_社区 发布时间: 20200710
... args:Array = null):void 延迟执行。 Parameters caller:* — 执行域(this)。 method:Function — 定时器回调函数。 args:Array (default = null) — 回调参数。 clear()method public function clear(caller:*, method:Function):void 清理定时器。 Parameters caller:* — 执行...
来源: Laya2.0_api 发布时间: 20190513
...ide中创建的一个movieClip,在代码中改变该mc的url,报错:this.mc.url is not a function 附件 : --> 2018-03-06 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 qian 赞同来自: 好的 有问题再...
来源: Laya_社区 发布时间: 20180306
...! 别抢小虎 • 2018-05-08 10:51 /// 加载的时候是这样写的 this.anim.loadAtlas(source , null, cacheName); this.anim.scaleX = 1; this.anim.scaleY = 1; this.anim.pivotX = 0; this.anim.pivotY = 0; this.anim.interval = 30; this.anim.play(); 在加载这个动作以前我会先清理上一...
来源: Laya_社区 发布时间: 20180507
...为myCar的模型后,为该模型添加碰撞器失败。 onComplete(){ this.scene1 = Laya.loader.getRes("3D/LayaScene_map/Conventional/map.ls"); Laya.stage.addChild(this.scene1); this.myCar = this.scene1.getChildByName("myCar"); var scale = new Laya.Vector3(2, 2, 2); this.myCar.transform.localSca...
来源: Laya_社区 发布时间: 20190620
...件 在舞台上添加了好几个节点,用于存放绘图,结构是 this.box.addChild(this.data); Laya.stage.addChild(this.box) 其中鼠标事件MOUSE_DOWN点击需要获取的是this.data的内容 this.data是由一块画布,几个点构成,我用循环函数创建几个点,并且设...
来源: Laya_社区 发布时间: 20171117
...= 0; var offsetArr:Array = [0, 0]; var point:Point = new Point(this.x, this.y); Laya.stage.timerLoop(speed, this, shakeObject); function shakeObject(args:Array=null, frameNum:uint=1, frameTime:uint=0):void{ var count:int = (num++) % 4; offsetArr[num % 2...
来源: Laya_社区 发布时间: 20170823
...er; class GameBootstrap{ public constructor(){ this.init(); } private init():void{ //初始化微信小游戏 Laya.MiniAdpter.init(true); //程序入口 Laya.init(600, 400,Laya.WebGL); ...
来源: Laya_社区 发布时间: 20180529