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

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

451. 组件初始化后是什么时候显示到舞台的 [ 71%]

... ymsdandan 赞同来自: LoaderManager类有个create(url: any, complete?: Handler, progress?: Handler, clas?: any, params?: Array<any>, priority?: number, cache?: boolean): any;方法,你可以看看   2017-11-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要...

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

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

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

453. AudioSound/Sound/WebAudio的区别是什么? [ 71%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 问一下使用AnimationPlayer播放龙骨动画的时候,播放速率和播放时长区别 看官方2.0的shader例子,模型视图投影矩阵定义的名称是u_MvpMatrix, ...

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

454. 关于stage与scene的区别(理论疑问,所以就不上传示例了) [ 71%]

... window is not defined 官网示例摇一摇报错,就解决方案 Laya.Handler.create和new Laya.Handler有啥区别 Adobe Flash Builder 4.7无法编译Laya2.6.1创建的3D示例项目 [分享]Dialog 点击边缘不关闭的 Demo示例 官方新手游戏引导示例中关于hit和unHit的使用...

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

455. 连续读取多个本地json文件 [ 71%]

...d { console.log("读数据"); Laya.loader.load("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON); } //读取商店等级配置表 shopJsonLoaded( )...

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

456. 请问一下new 一个Image和ui界面里组件的Image有什么区别?急!! [ 71%]

...,并且两个list同时滚动一模一样。 View嵌套Dialog组件 Laya.Handler.create和new Laya.Handler有啥区别 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大小或原位置,应该用什么缓动模式 在线急等,发现你们这个...

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

457. laya.d3.resource.TextureCube [ 70%]

...通过基础数据生成mipMap。 BaseTexture  load(url:String, complete:Handler):void[static] 加载TextureCube。 TextureCube  setSixSideImageSources(source:Array, premultiplyAlpha:Boolean = false):void 通过六张图片源填充纹理。 TextureCube  setSixSidePixels(width:int, height:int,...

来源: Laya2.0_api 发布时间: 20190513

458. 自己创建的box作为tab,为啥没有点击事件啊? [ 70%]

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

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

459. list的_dataSource问题。 [ 70%]

list的_dataSource问题。 list.renderHandler = new Handler(this, this.onInitItem); list.array=[{a:1},{a:2}];   private onInitItem(item,index){}   在 onInitItem 中怎么得到他的数据?list.array 里面的那个 {a:1}   我看源码中有 _dataSource ,但是方法不是公开的。要...

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

460. 3D场景脚本继承问题 (LayaAir 2.0.0) [ 70%]

...las:BattleScene} ];  //预加载 Laya.loader.create ( this.resArray, Laya.Handler.create(this,this.onPreLoadComplete), Laya.Handler.create(this,this.onProgress), );   }  onPreLoadComplete() : void { let sceneUrl = this.resArray[0]["url"];  this.scene = Laya.loader.getRes(sceneUrl) as BattleScene...

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