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

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

5961. 提示资源重复加载 [ 46%]

...te swimpoolani:Laya.Animation;  constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"...

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

5962. laya.resource.AssetDb_API3.0 [ 46%]

...ned in laya/resource/AssetDb.ts:14 uuid 数据 Static inst inst: AssetDb = new AssetDb() Defined in laya/resource/AssetDb.ts:9 默认资源实例 Methods URL_to_UUID_async URL_to_UUID_async(url: string): Promise<string> Defined in laya/resource/AssetDb.ts:49 Url获得uuid值 Parameters url: st...

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

5963. 我用matter.js渲染一个篮球, 但是不会自动旋转.. 这个怎么设置呢? [ 46%]

...是不会自动旋转.. 这个怎么设置呢? 付代码 : var ball_skin = new Laya.Sprite().loadImage("res/basketball.png"); ball_skin.pivot(ball_skin.width / 2, ball_skin.height / 2); this.ball = Matter.Bodies.circle(0, -100, 34, {     layaSprite: ball_skin, // 绑定一个laya的Sprite, 不能...

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

5964. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 46%]

...r = 5; private sprite: Laya.Sprite; constructor() { super(); this.sprite = new Laya.Sprite(); } drawText(x: number, y: number, w: number, h: number) { console.log(2222); var j = 0;//控制行列 var printNumber = 0;//当前输出字数 var fonts = this.fontSize + "px" + " " +this.font ; var xAction ...

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

5965. 在加载3d人物的时候,Laya.timer.loop会卡顿,由于又需要每隔一段时间执行一个方法,暂时想到了用Laya.timer.loop,这个有什么好的解决方案替代吗? [ 46%]

... 要回复问题请先登录 发起人 RayFor24 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 请问有没有方法能够获取“鼠标是否处于按下状态”? 配置layaAir需要注意的 请问layaide如何创建一个复合...

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

5966. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 46%]

...),null,Loader.ATLAS); } private function onLoadedSource():void { roleAni = new Animation(); playActions(); }   2、你打包图集的时候,.json文件的prefix键是没有值的,这个是因为你直接针对散图所在文件夹进行打包了,你需要在资源文件夹的外层再套一...

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

5967. laya.d3.core.particleshuriken.module.shape.ConeShape_API3.0 [ 46%]

...ethods clone cloneTo generatePositionAndDirection Constructors constructor new ConeShape(): ConeShape Overrides BaseShape.constructor Defined in laya/d3/core/particleShuriKen/module/shape/ConeShape.ts:24 创建一个 ConeShape 实例。 Returns ConeShape Properties angle angle: number Defined in lay...

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

5968. laya.device.geolocation.Geolocation_API3.0 [ 46%]

...thods clearWatch getCurrentPosition watchPosition Constructors constructor new Geolocation(): Geolocation Defined in laya/device/geolocation/Geolocation.ts:47 Returns Geolocation Properties Static PERMISSION_DENIED PERMISSION_DENIED: number = 1 Defined in laya/device/geolocation/Geolocation.ts:15 ...

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

5969. 编辑器选择分离模式生成TS代码时能自动在createChildren里加上createView调用代码么? [ 46%]

...叠 要回复问题请先登录 发起人 swrrfd 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 2.0一不小心删了bin目录下的某个场景json文件。。竟然无法自动生成了? 请问laya有没有地图编辑器工具?...

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

5970. 微信小游戏开放域(JavaScript-小游戏适配文档-微信小游戏) [ 46%]

...('透传的json信息:', testJosn); //加载IDE指定的场景 var big = new BigRank(); big.init(); } ``` 微信环境下测试,效果如图1: ![](img/1.png)(图1)

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