大约有 3,979 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0074 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...olliderShape // 给box添加物理 不添加物理直接销毁不会报错 var planeStaticCollider = this.box.addComponent(Laya.PhysicsCollider); var planeShape = new Laya.BoxColliderShape(10, 0, 10); planeStaticCollider.colliderShape = planeShape; 古 • 2019-01-24 17:58 @182*****524:明白了,...
来源: Laya_社区 发布时间: 20190118
...、名字、排行数值等等,这一步一般通过设置属性中的【var】来实现。 接着,导出这一项专属的类,例如叫RankListItemUI。 最后,我创建一个界面逻辑类:RankListItem,继承导出类RankListItemUI,然后就可以直接引用导出类中导出的变...
来源: Laya_社区 发布时间: 20180410
...data.width; Laya.Browser.window.sharedCanvas.height = message.data.height; var tempMatrix = message.data.matrix; var matrix = new Laya.Matrix(); matrix.a = tempMatrix.a; matrix.b = tempMatrix.b; matrix.c = tempMatrix.c; matrix.d = tempMatrix.d; Laya.stage._canvasTransform = matrix;//重新设置矩...
来源: Laya_社区 发布时间: 20180903
....BitmapFont; public class TestBitmapFont { //自定义文件名称 private var mFontName:String = "diyFont"; private var mBitmapFont:BitmapFont; public function TestBitmapFont() { Laya.init(550, 400); mBitmapFont = new BitmapFont(); //这里不需要扩展名,外部保证fnt与png文件同名 mBit...
来源: Laya2.0_文档 发布时间: 20201114
...new A(); } } }package { import laya.utils.Handler; public class A { public var completeHandler:Handler; public function A() { completeHandler = Handler.create(this,onComplete,[this]); completeHandler.run(); new B().load(completeHandler); trace('A',completeHandler.method == null,completeHandler['_id'...
来源: Laya_社区 发布时间: 20170330
...ion实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); ``` 第三步:添加动画到舞台,播放动画 ```javascript //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.pl...
来源: Laya2.0_文档 发布时间: 20210715
... = new Laya.Image('c1.png'); node.pos(300, 300) Laya.stage.addChild(node); var sp: Laya.Sprite = new Laya.Sprite(); node.mask = sp; sp.pos(50, 50); var sp2: Laya.Sprite = new Laya.Sprite(); sp2.pos(300, 500); Laya.stage.addChild(sp2); let r: number = 0 Laya.timer.loop(100, this, () => { if (r >...
来源: Laya_社区 发布时间: 20190701
...树移除时调度。NodeProperty Detail__VECTOR3__propertypublic static var __VECTOR3__:Vector3LOD_DISTANCE_FACTORproperty public static var LOD_DISTANCE_FACTOR:Number = 2.0LOD_TOLERANCE_VALUEproperty public static var LOD_TOLERANCE_VALUE:Number = 4RENDER_LINE_MODELproperty public static var REN...
来源: Laya2.0_api 发布时间: 20190513
..., chrome, chrome-extension, https. load(url) { var me = this; url = URL.formatURL(url); this.url = url; this.audioBuffer = WebAudioSound._dataCache[url]; if (this.aud...
来源: Laya_社区 发布时间: 20200107
...需要设置为竖型的图集。 现在问题来了。根据代码 for (var i=0,sz=this._valueArr.length;i < sz;i++){ var index=this._indexMap[this._valueArr.charAt(i)]; if (!this.sources[index])continue ; texture=this.sources[index]; if (isHorizontal)this.graphics.drawTexture(te...
来源: Laya_社区 发布时间: 20180228