大约有 1,208 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)
Laya_社区(872) Laya2.0_文档(85) Laya3.0_api(61) Laya2.0_api(58) laya_api(55) Laya_示例(32) Laya2.0_示例(27) Laya3.0_文档(18)
...: /**@private */ __proto.loop=function(){ var mouseY=Laya.stage.mouseY; var mouseX=Laya.stage.mouseX; this._lastOffset=this.isVertical ? (mouseY-this._lastPoint.y):(mouseX-this._lastPoint.x); if (this._clickOnly){ ...
来源: Laya_社区 发布时间: 20181028
...文本 private function createTween():void { //"LayaBox"字符串总宽度 var w:int = 800; //文本创建时的起始x位置(>>在此使用右移运算符,相当于/2 用>>效率更高) var offsetX:int = Laya.stage.width - w >> 1; //显示的字符串 var demoString:String = "LayaBox"; var letter...
来源: Laya2.0_文档 发布时间: 20210715
...件不起作用? /**交易按钮*/ private var m_mc_trade:Animation; /**挂机按钮*/ private var m_btn_auto:Button; m_mc_trade.on(Event.CLICK,this,onBtnClick); m_btn_auto.on(Event.CLICK,this,onBtnClick); 我有设置了点击事件了,...
来源: Laya_社区 发布时间: 20170412
...et.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat.show(); Laya.loader.load("res/atlas/war.json", Laya.Handler.create(this, this.onLoaded), null, Laya.Loader.ATLAS); Laya.lo...
来源: Laya_社区 发布时间: 20161026
...调函数为什么只能用Handler创建? 比如一个主类: private var score:int; public function main():void { new class(callback); } private function callback(num:int):void { this.score = num; var tmp:int = this.score; trace(tmp); } 另外一个类:class.as 里面有个...
来源: Laya_社区 发布时间: 20161125
...撞检测不到,如果给模型添加boxCollider是可以检测到的。 var collider = barrier.addComponent(Laya.MeshCollider); collider.mesh = barrier.meshFilter.sharedMesh 已经安装官方文档添加上面的两行代码了 附件 : --> 2018-05-21 添加评论 已悬赏3元 --> 分享 微博...
来源: Laya_社区 发布时间: 20180521
...17-10-25 17:12 浏览: 1390 关注: 2 人 15818760256 • 2017-10-25 17:19 var arr = []; arr.img = "images/insect.jpg"; arr.text = "蝗虫泛滥"; 那如果是这样定义的数组,想删除其中某一项要怎么弄?这个没有索引值了。。 175*****371 • 2018-04-09 ...
来源: Laya_社区 发布时间: 20171025
...ya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var templete:Templet;//动画模板类 private var skeleton:Skeleton;//骨骼动画类 private var curNum:int=0;//curNum%2求余数,切换不同皮肤 public function LayaAirDemo() { Laya.init(Browser.width,Browser.height,W...
来源: Laya_社区 发布时间: 20170324
...我就是想把二维码要绘制的div传过去,代码如下: __JS__('var qrcode = new QRCode(document.getElementById("qrcode"), {width:100, height:100});'); 范例中的代码本身是这样子的: <body> <div id="qrcode" style="width:100px; height:100px; margin-top:15px;"></d...
来源: Laya_社区 发布时间: 20170817
...: 与内容相关的链接 提交 1 个回复 淡淡的疯 赞同来自: var texture2D = new Laya.Texture2D(); texture2D.loadImageSource(sharedCanvas, true); var texture = new Laya.Texture(texture2D); //texture.bitmap.alwaysChange = true; rankList.graphics.drawTexture(texture, 0, 0, sharedCanvas....
来源: Laya_社区 发布时间: 20181001