大约有 1,654 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0092 秒)
Laya_社区(831) Laya3.0_api(384) Laya2.0_api(195) laya_api(183) Laya2.0_文档(39) Laya3.0_文档(18) Laya2.0_示例(2) Laya_示例(2)
...也可以。 width: Laya.stage.width, height:Laya.stage.height } }; Media.getMedia(options, Handler.create(this, onSuccess), Handler.create(this, onError)); } } private function showMessage():void { var text:Text = new Text(); Laya.stage.addChild(text); text.text = "单击舞台播放和暂停"; tex...
来源: Laya2.0_文档 发布时间: 20210715
...@zh 浏览器窗口的物理宽度,考虑了设备像素比。 */ static get width(): number { Browser.__init__(); return ((ILaya.stage && ILaya.stage.canvasRotation) ? Browser.clientHeight : Browser.clientWidth) * Browser.pixelRatio; } /** * @en The physical height of the browser window, ...
来源: Laya3.0_文档 发布时间: 20251010
...,如图3-4所示。 (图3-4) LayaAir 3D引擎的Sprite3D类提供了 getComponent() 方法来获取模型上的组件。带动画的模型在加载创建时引擎默认赋予了Animator(动画状态机)动画组件,因此我们可以这样获取: //获得状态机 this.animator = this....
来源: Laya3.0_文档 发布时间: 20251010
...以。 width: Laya.stage.width, height:Laya.stage.height } }; Laya.Media.getMedia(options,Laya.Handler.create(this,this.onSuccess),Laya.Handler.create(this,this.onError)); } } private showMessage():void{ var tex:Laya.Text = new Laya.Text(); Laya.stage.addChild(tex); tex.text = "单击舞台播放和...
来源: Laya3.0_文档 发布时间: 20251010
...一次某函数(基于帧率)。功能同Laya.timer.frameOnce()。 Node getChildAt(index:int):Node 根据子节点的索引位置,获取子节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子节点...
来源: Laya2.0_api 发布时间: 20190513
... 设置渲染相关状态。 BaseMaterial _setRenderStateFrontFace(isTarget:Boolean, transform:Transform3D):void 设置渲染相关状态。 BaseMaterial _upload():void 上传材质。 BaseMaterial clone():* 克隆。 BaseMaterial cloneTo(destObject:*):void 克隆。 BaseMaterial onAs...
来源: laya_api 发布时间: 20170929
...gt;>>>>className:layaair.game.utility.ProcessInfo,methodName:getTotalMem >>>>>>>>>>>>before 12-09 22:04:33.106 12728-12832/? E/LayaBox: >>>>>>>>>>>>after 12-09 22:04:33.106 12728-12832/? I/LayaBox: found the ...
来源: Laya_社区 发布时间: 20181209
...n laya/utils/TimeLine.ts:45 缩放动画播放的速度。 Accessors total get total(): number Defined in laya/utils/TimeLine.ts:397 得到总帧数。 Returns number Methods addLabel addLabel(label: string, offset: number): TimeLine Defined in laya/utils/TimeLine.ts:122 在时间队列中加入一...
来源: Laya3.0_api 发布时间: 20231115
...据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边...
来源: Laya2.0_api 发布时间: 20190513
...oveComments: true}}, include:/.*.ts/, }), glsl({ // By default, everything gets included include: /.*(.glsl|.vs|.fs)$/, sourceMap: false, compress:false }), /*terser({ output: { }, numWorkers:1,//Amount of workers to spawn. Defaults to the number of CPUs minus 1 sourcemap: false })*/ ] }).then(bundl...
来源: Laya_社区 发布时间: 20200607