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

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

811. [BUG]刚体约束问题,移动后约束混乱! [ 57%]

...l();     Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) {       planeMat.albedoTexture = tex;     }));     //设置纹理平铺和偏移     var tilingOffset = planeMat.tilingOffset;     tilingOffset.setValue(5, 5,...

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

812. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 57%]

...men/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071...

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

813. 加载的nativeimage处理 [ 57%]

... 3 个回复 cuixueying 赞同来自: { Laya.loader.load("ui/image.png", Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var texture:Texture=Loader.getRes("ui/image.png"); var sp:Sprite=new Sprite(); sp.graphics.drawTexture(texture); Laya.stage.addCh...

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

814. 这样的panel请问如何实现比较好? [ 57%]

...var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS);  } } new GameMain();   Test.zip 2018-08-10 0 1 分享 微博 QZONE 微信 Bert 赞同来自: 感觉很简单...

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

815. laya.ui.Dialog_API3.0 [ 57%]

...一个 Dialog 实例。 package { import laya.ui.Dialog; import laya.utils.Handler; public class Dialog_Example { private var dialog:Dialog_Instance; public function Dialog_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的...

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

816. 图片设置mask有毛边 [ 57%]

...loadImage(SKINS.HEXA_GRID_BG, 0, 0, this.hexaSize.w, this.hexaSize.h, Laya.Handler.create(this, function () { index++; if (index >= views.length) { img.mask = imgMask; } })); imgMask.addChild(tmpMask);       附件 : --> 2020-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

817. replaceSlotSkinName对于spine换肤不成功 [ 57%]

...乱 Native2.0正式版wss连接不成功web版本没问题,有DEMO Laya.Handler为什么注册不成功? 发布VIVO后,加载骨骼动画SK文件不成功,没有任何响应 spine 预加载怎么弄?用loadAni??? 2.1 spine 动画播放出现抖动的bug修复 发布不成功,无法...

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

818. Loader.BUFFER的问题 [ 57%]

...行解压,采用的是以下语句: Laya.loader.load("config.zip", Laya.Handler.create(this, this.configLoaded,["config.zip"]), null, Laya.Loader.BUFFER, 1, true)   private configLoaded(url):void {     var data:Object = Laya.loader.getRes(url);     console.log(data)     var e = new Zlib.Inf...

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

819. Mesh网格-自定义网格 [ 57%]

...Event; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGLContext; import common.CameraMoveScript; import common.Tool; /** * ... * @author */ public class CustomMesh { public function CustomMesh() { Laya3D.init(0, 0, true); Lay...

来源: Laya_示例 发布时间: 20251209

820. 模型资源异步加载和预加载 [ 57%]

...预加载,创建为Sprite3D类型 Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void{ //实例化加载并创建好的3D对象 var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room.lh"); this.scene.addCh...

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