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

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

371. Laya.Tween怎么运用到3D对象上? [ 70%]

...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_社区 发布时间: 20170905

372. image.drawToCanvas方法获取的一直是空的png [ 70%]

...vas; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { private var img:Image; public function LayaAirDemo() { Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; L...

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

373. TieldMap is not counstructer [ 70%]

... this._tMap.createMap("../bin/map/orthogonal-outside.json",viewRect,Laya.Handler.create(this,this.onComplete));     附件 : --> 2020-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 157*****593 赞同来...

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

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

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

375. 2.0新特性常见问题(TypeScript-常见问题汇总(持续更新)-2.0常见问题) [ 70%]

...先声明一个预设变量 {Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete)); } private function onComplete(obj:Object):Void{ 一个预设变量.json = ojb 一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一个预设变量.create, this.一个预设...

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

376. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 70%]

... = Laya.Button; import Clip = Laya.Clip; import Image = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "res/ui/button-7.png"; private clipSkin: string = "res/ui/num0-9.png"; private bgSkin: string = "res/ui/coutDown.png"; pri...

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

377. TiledMap.getLayerObject [ 70%]

...ctangle(0,0,320,160); tMap.createMap("res/TileMap/Test.json",viewRect,Laya.Handler.create(this,onCreateMap)); var point =0; function onCreateMap(){ this.role = tMap.getLayerObject("role","player"); console.log(this.role.x,this.role.y); }       附件 : --> 2017-11-24 添加评论 免费帖 --> ...

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

378. 如何获取unity导出的摄像机 [ 70%]

...是我自己慢慢研究的 Laya.loader.create([{url:"land/main.lh"}],Laya.Handler.create(this,this.onCreateComplete));   再单独写个这个 onCreateComplete(){ var land = Laya.loader.getRes("land/main.lh"); this.scene.addChild(land); var camera = land.getChildByName("Camera"); camera.addCompone...

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

379. 微信开放数据域(TypeScript-小游戏适配文档-微信小游戏) [ 70%]

...图集 Laya.loader.load(["json/reward.json","res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); //使用接口将json投促函到子域 Laya.MiniAdpter.sendJsonDataToDat...

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

380. demo里面加载资源 .lh报错 [ 70%]

...git上面的资源 Laya.loader.create([ "res/u3d/grid/plane.lh", ], Laya.Handler.create(this, this.onPlaneComplete));   附件 : --> 2019-05-15 添加评论 已悬赏15元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 sand 赞同来...

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