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

大约有 2,482 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0058 秒)

1161. APK扩展机制 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...roxy.java”中的getExpansionMainPath函数,设置正确的zip路径。 public String getExpansionMainPath() { return "/storage/emulated/0/Android/test/com.layabox.game/test.zip"; } public String getExpansionPatchPath() { return ""; } LayaNative中最多支持两个zip文件,第二个zip修改g...

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

1162. laya.net.ResourceVersion_API3.0 [ 68%]

...Preparing search index... The search index is not available ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/net/ResourceVersion" ResourceVersion Class ResourceVersion 资源版本的生成由layacmd或IDE完成,使用 ResourceVersion 简化使用过...

来源: Laya3.0_api 发布时间: 20231102

1163. 如何将一段文字放置到粘贴板 , 或者说点击一个按钮后复制copy一段文字? [ 68%]

...取文本内容: generalPasteboard.setValueforPasteboardType("testValue", "public.utf8-plain-text"); var value = generalPasteboard.valueForPasteboardType("public.utf8-plain-text"); 2017-06-09 0 0 分享 微博 QZONE 微信 moketao 赞同来自: Native.js 的完整介绍:http://ask.dcloud.net.cn/arti...

来源: Laya_社区 发布时间: 20170531

1164. 求助高手请进,关于场景导入的问题~ [ 68%]

... var scene1:GameScene = new GameScene(); Laya.stage.addChild(scene1);   public class GameScene extends Scene {    public function GameScene()    {       Laya.loader.create("LayaScene_01/loveScene.ls",Handler.create(this,this.completeHandler));    }          private function completeH...

来源: Laya_社区 发布时间: 20170825

1165. int/Number/uint之前的强转需要注意哪些问题? [ 68%]

...操作。  原生例子:  var num:int = 2340923944589; transfrom(num); public function transfrom(value:uint):void { trace(value); } 兼容H5写法: var num:int = 2340923944589; transfrom(num); public function transfrom(value:uint):void { trace(uint(value)); } (3)、除法运算取整描述...

来源: Laya_社区 发布时间: 20151204

1166. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 68%]

...Body,rigidBody2); ``` - 3.设置约束的breakForce ```typescript override public function onStart() { this.fixedConstraint = this.owner.getComponent(FixedConstraint); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } override public function onUpdate() { if(this.fixedCon...

来源: Laya2.0_文档 发布时间: 20210714

1167. laya.d3.shader.DefineDatas_API3.0 [ 68%]

...Preparing search index... The search index is not available ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/shader/DefineDatas" DefineDatas Class DefineDatas DefineDatas 类用于创建宏定义数据集合。 Hierarchy DefineDatas Implements IClone...

来源: Laya3.0_api 发布时间: 20231102

1168. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 68%]

...port view.TestView; import laya.net.WorkerLoader; import laya.webgl.WebGL; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400,WebGL); //设置Laya提供的worker.js的路径 WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 WorkerLoader.e...

来源: Laya2.0_文档 发布时间: 20210715

1169. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 68%]

...t laya.display.Sprite; import laya.utils.Browser; import laya.webgl.WebGL; public class HelloLaya { public function HelloLaya() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild...

来源: Laya_社区 发布时间: 20170830

1170. laya.d3.component.LODInfo_API3.0 [ 68%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/LODGroup" LODInfo Class LODInfo 此类描述Lod数据 Hierarchy LODInfo Index Constructors constructor Accessors mincullRate render...

来源: Laya3.0_api 发布时间: 20231115