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

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

911. 背景音乐文件太大 播放延迟 [ 70%]

...(this, () => {                 this.store.isDemo = true;                 Laya.Scene.open("scene/Home.scene")             }), new Laya.Handler(this, (value: number) => {                 this._page = this.page       ...

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

912. 关于缓动函数from的一些问题记录 [ 70%]

...,{y:100},3,Laya .Ease.backOut,new Handler(this,this.onEaseComplete),1,null,true); function onEaseComplete(){ console.log("ease complete"); Laya.stage.addChild(letterText); } ``` 以上的代码主要存在三个问题: 1. from()中的duration和delay都是以毫秒为单位,所以3,1想表示3秒,1...

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

913. [LayaNative] Label不显示文字, 甚至闪退 100%复现 [ 70%]

...  1.使用layaide2.1打开工程   2.修改Label, this.tipLbll.italic = true; this.tipLbll.bold = false; this.tipLbll.text = "测试"; 3.然后使用LayaNative生成安卓项目,  进游戏会发现没显示文字   如果将this.tipLbll.text = " 测试";//前面加四个空格 那么游戏会...

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

914. 关于矢量图跟Image [ 70%]

...getBounds函数获取;也可手动设置宽高;还可以设置autoSize=true,然后再获取宽高。Sprite的宽高一般用于进行碰撞检测和排版,并不影响显示图像大小,如果需要更改显示图像大小,请使用 scaleX , scaleY , scale。 Sprite 默认不...

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

915. SoundChannel在页面失焦后自动丢失audioBuffer,以致没有声音 [ 69%]

...r: AudioBuffer, playbackRate: AudioParam, detune: AudioParam, loop: true, loopStart: 0, …} completeHandler:null context:AudioContext {baseLatency: 0.01, destination: AudioDestinationNode, currentTime: 3.7706666666666666, sampleRate: 48000, listener: AudioListener, …} gain:Ga...

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

916. laya.d3.resource.TextureCube_API3.0 [ 69%]

...ameters size: number format: TextureFormat Default value mipmap: boolean = true Default value sRGB: boolean = false Returns TextureCube Properties destoryedImmediately destoryedImmediately: boolean Inherited from Resource.destoryedImmediately Defined in laya/resource/Resource.ts:104 是否在引用...

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

917. laya.map.TileTexSet [ 69%]

...果发现子纹理被替换成一个动画序列,animationKey会被设为true 即animationKey为true,就使用TileAniSprite来做显示,把动画序列根据时间画到TileAniSprite上 Public Properties PropertyDefined By  animationTotalTime : Number = 0 动画播放的总时间 TileTexSet ...

来源: laya_api 发布时间: 20170929

918. Button和下面的3D物体重叠,点击button,3D物体会同时响应自己的鼠标脚本 [ 69%]

...提:把所有可能与3D物体重叠的UI元素的 mouseEnable 设置为 true ,接收鼠标点击 onAwake() { this.isClick = false; //对舞台stage添加点击事件(这里由于有scene的缘故,点击空白处返回的对象是scene) Laya.stage.on(Laya.Event.CLICK,this,function(e) { if(...

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

919. layaair 怎么切换场景,切换场景后怎么初始化当前场景的游戏数据。 [ 69%]

...数来控制是否关闭其他场景 是否关闭其他场景,默认为true(可选),【注意】被关闭的场景,如果没有设置autoDestroyAtRemoved=true,则资源可能不能被回收,需要自己手动回收

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

920. 关于安卓APK打包问题 报错 [ 69%]

...r event = document.createEvent(specialEvents[type] || 'Events'), bubbles = true     if (props) for (var name in props) (name == 'bubbles') ? (bubbles = !!props[name]) : (event[name] = props[name])     event.initEvent(type, bubbles, true) // 这行就是那个报错的那行 如何解决呢    ...

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