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

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

2911. laya.ui.List [ 45%]

...设置此属性为true能大大提高性能 List  cells : Vector.<Box>[read-only] 单元格集合。 List centerX : Number 在父容器中,此对象的水平方向中轴线与父容器的水平方向中心线的距离(以像素为单位)。 Component centerY : Number 在父容器中...

来源: laya_api 发布时间: 20170929

2912. 关于TS环境下的第三方库导入的疑问 [ 45%]

...的libs 目录中 也就是把上边的  /// <reference types="when" />  export = autobahn;   删掉 这样就和Laya库的格式比较像 只是多了个命名空间declare namespace autobahn { export class Session { id: number; realm: string; isOpen: boolean; features: any; .................

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

2913. 求教:加上粒子效果后就报错 [ 45%]

... if(!this._particleTemplate)return; var sv: any = ((<ParticleTemplate2D>this._particleTemplate)).sv; 2021-10-10 0 1 分享 微博 QZONE 微信 肖刚 赞同来自: Laya_Fred您好,我有个问题,模拟做愤怒的小鸟游戏时,需要获取碰撞的冲量强度,但是onTrigger函数...

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

2914. 引擎升级到2.13.0beta,模型动作重叠 [ 45%]

...的问题,重新回复了,也提供了demo,有空麻烦帮忙康康>_< layabox • 2022-01-29 12:31 @黄杰龙:设置高清分辨率模式也可以,就是让画布采用物理分辨率的模式。官网文档看一下

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

2915. putimagedata 不起作用 [ 45%]

...(data, [0]), w = imageData.width, h = imageData.height, i = 0, l = data.length, x, y, d for (i; i < l; i += 4) { if (data[i]!== 0) { console.log(data[i]) } x = i / 4 % w y = Math.ceil(i / 4 / w) - 1 d = Math.ceil(20 * Math.sin(0.071 * y)) if (x + d <= 0 || x + d > w) { data[i + 3] = 0 } els...

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

2916. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 45%]

...中是否激活。 components get components(): ReadonlyArray<Component> Inherited from Node.components Defined in laya/display/Node.ts:983 返回所有组件实例。 Returns ReadonlyArray<Component> 返回组件实例数组。 destroyed get destroyed(): boolean Inherited from Node.dest...

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

2917. [LayaAir3]3.2spine动画和3.0.8效果不一样 [ 45%]

... It must be resumed (or created) after a user gesture on the page. <URL> Scene.ts:402 Error loading Loading.ls: Error: unknown type 'xmaaYG8AQ1yC07pr_JvyPA' (anonymous) @ Scene.ts:402 Promise.then (async) load @ Scene.ts:395 open @ Scene.ts:441 (anonymous) @ index-142c5.js:62 Promise.then (asy...

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

2918. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 45%]

...mationTemplet} = {};         private meshes : Array<MeshSprite3D> = [];         private OnHierarchyLoaded() {             for (let v of this._childs[0]._childs) {                 let mesh = v as MeshSprite3D;                 mesh.addCompon...

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

2919. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 45%]

...e ... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmetadata",()=>{ var videoTexture:Laya.VideoTexture = new Laya.VideoTexture(); videoTexture.video = this.htmlvideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.vi...

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

2920. js飞机大战报错 请大神看看 [ 45%]

...合批报错. 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 用了ByteArray的zlib.min.js后报错 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() IDE通过.ui自动生成的ui代码报错 问题状态 最新活动: 2017-11-...

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