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

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

251. 求助关于TiledMap的版本问题 [ 62%]

... import laya.maths.Rectangle; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaSample { private var tMap:TiledMap; public function LayaSample() { //初始化引擎 Laya.init(1136, 640,WebGL); //创建TiledMap实例 tMap = new TiledMap(); //创建Rectang...

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

252. rigidBody.applyForce 物体不会移动 [ 62%]

...载场景人物腳色 Laya.Scene3D.load( "res/build5/SampleScene.ls", Laya.Handler.create(this, this.onComplete) ); //射线初始化(必须初始化) this._ray = new Laya.Ray( new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0) ); //初始化变量 this.point = new Laya.Vector2(); this._outHit...

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

253. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 62%]

...ngle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: string = "../laya/monkey2.png"; private ape: Sprite; private dragRegion: Rectangle; constructor() { // 不支持WebGL时自...

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

254. 请问用laya的tab模板创建的tab,为啥没有点击事件啊?而且tab标签点击后没有一直处于按下状态 [ 62%]

...ya.init(600, 400); Laya.loader.load("res/atlas/template/Tab栏.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() {     Laya.class(MyBoot, "MyBootClass", MyBootPage2UI);     UI = new MyBootClass();     Laya.stage.addChild(UI); } function MyBoot() {...

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

255. AS类中初始化JS类相关问题 [ 62%]

...在bin/h5目录下 下面是代码:   Laya.loader.load("Base.min.js", Handler.create(this,loadedHandler)); function loadedHandler(data:*):void{ //加载完回调 //__JS__('window.eval(data + "//# sourceURL=" + "Base.min.js")'); //new需要的类   //_base = new Browser.window.Base(); _base = __J...

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

256. 刚刚接触2天layaair,有几个问题请教。 [ 62%]

...也不影响后续流程 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); } onVersionLoaded() { //激活大小图映射,加载小图的时候,如果发现小图在大图合集里面,则优先加载大图合集...

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

257. 【紧急】laya2.0的loadImage方法为什么不触发complete? [ 62%]

...Laya.stage.addChild(logo); logo.loadImage("img/load_logo.png", 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); })); 我在laya1.0这么写,触发complete没毛病,为什么到了2.0这个complete不触发?谁给解释一下啊 2018-10-10 添加评论 免费帖 --> 分享 微...

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

258. 关于tiledmap.moveViewPort动画的问题 [ 62%]

...ya_Aaron 赞同来自: Tween.to(this,{x:40,y:50,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onUpdate)}) 大概长这个样子 2018-07-06 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 如果会用tween 就好办,  tween 里面有个 update 回调,...

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

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

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

260. viewpanel关于mouseThrough的区别 [ 62%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.createnew Laya.Handler有啥区别 DialogView用destroyLaya.stage.removeChild有什么区别? 求解:2D项目中加载View,Laya.Scene.load应该如何使用? 关于打包图集时的图片默认属性与...

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