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

大约有 823 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0051 秒)

341. 问一下这个问题要怎么改啊? [ 65%]

...ite; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; public class addPic { private var picUrl:String; private var pic:Sprite; private var picX:int; private var picY:int; public function addPic(str:String, x:int, y:int) { picUrl = str; picX = x; picY = y; Laya.loader.lo...

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

342. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 65%]

...en/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(...

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

343. label 和text 有啥区别 感觉差不多? [ 65%]

...细区别是什么? 斜角透视的感觉怎么弄出来呀?? Laya.Handler.createnew Laya.Handler有啥区别 HttpRequest感觉没有发成功 text组件在native2.0上运行会报错 问一下使用AnimationPlayer播放龙骨动画的时候,播放速率和播放时长区别 layabox2d例...

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

344. 技术文档中的示例js运行报错 [ 65%]

...his.setTo is not a function(function () { const Loader = Laya.Loader const Handler = Laya.Handler (function () { Laya.init(1136,640) Laya.stage.bgColor="#fff" Laya.loader.load('./../bin/res/atlas/res.atlas', Handler.create(this, onLoaded)) })() function onLoaded() { var cMask = new maskDemoUI() Laya...

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

345. Sprite3D的克隆(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 65%]

...ya.loader.create("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, this.onComplete)); } //完成回调 onComplete() { //获取资源 var layaMonkey = this.scene.addChild(Laya.Loader.getRes("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMo...

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

346. LayaBox里export关键字用或不用什么区别? [ 65%]

...,我用ts编写的相关内容,都要使用import和export吗? Laya.Handler.createnew Laya.Handler有啥区别 如何不用遮罩显示圆形微信头像,不用是因为遮罩在微信小游戏中失效 dispone和destory的区别 Dialog和View用destroy和Laya.stage.removeChild有什么...

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

347. layaair与layabox的区别 [ 65%]

...区别是什么? LayaAir 3D 有提供 3D 物理引擎功能吗? Laya.Handler.createnew Laya.Handler有啥区别 layabox打包app LayaAir怎么和FairyGUI整合 Dialog和View用destroy和Laya.stage.removeChild有什么区别? LayaAir Run 或者代码 显示的模型只有绿色 问题状态 ...

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

348. VBOX动态增加的元素没有自动布局 [ 65%]

...谢import test = ui.test.TestPageUI; import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; class TestUI extends ui.test.TestPageUI { constructor() { super(); var btn1=new ui.test.view_btnUI(); var btn1_btn:laya.ui.Button=btn1.getChildByName("btn") as lay...

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

349. tween如何更改3d物体位置 [ 65%]

...ion;Laya.Tween.to(box.potOld,{     x:1     ,y:2     ,update:new Laya.Handler(box,function(){         this.transform.position = this.potOld;     }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){     console.log("complete"); }),ConstValue.animation...

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

350. layabox有与Facebook的SDK对接成功的例子嘛? [ 65%]

...觉没有发成功 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 预加载图集成功了 ,但是渲染的时候找不图片资源。高手帮帮忙 希望Laya3D的入门提供一个unity的项目例子 用https://layaair.ldc.layabox.com/demo/?2...

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