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

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

1591. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 37%]

...也可以。 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

1592. 屏幕适配 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...@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

1593. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...,如图3-4所示。 (图3-4) LayaAir 3D引擎的Sprite3D类提供了 getComponent() 方法来获取模型上的组件。带动画的模型在加载创建时引擎默认赋予了Animator(动画状态机)动画组件,因此我们可以这样获取: //获得状态机 this.animator = this....

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

1594. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

...以。 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

1595. laya.d3.core.particleShuriKen.ShuriKenParticle3D [ 35%]

...一次某函数(基于帧率)。功能同Laya.timer.frameOnce()。 Node getChildAt(index:int):Node 根据子节点的索引位置,获取子节点对象。 Node getChildByName(name:String):Node 根据子节点的名字,获取子节点对象。 Node getChildIndex(node:Node):int 根据子节点...

来源: Laya2.0_api 发布时间: 20190513

1596. laya.d3.core.material.BaseMaterial [ 35%]

... 设置渲染相关状态。 BaseMaterial  _setRenderStateFrontFace(isTarget:Boolean, transform:Transform3D):void 设置渲染相关状态。 BaseMaterial  _upload():void 上传材质。 BaseMaterial  clone():* 克隆。 BaseMaterial  cloneTo(destObject:*):void 克隆。 BaseMaterial  onAs...

来源: laya_api 发布时间: 20170929

1597. Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。。才能进去 [ 35%]

...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

1598. laya.utils.TimeLine_API3.0 [ 35%]

...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

1599. laya.ui.ScaleBox [ 35%]

...据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边...

来源: Laya2.0_api 发布时间: 20190513

1600. 如何使用vscode编译laya项目 [ 34%]

...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