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

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

821. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 82%]

... ![图片1.png](https://official.layabox.com/laya_data/Chinese/LayaAir_AS3/2D/advanced/PerformanceOptimization/CPU/img/1.png) (图1) 此时FPS显示30,并且在鼠标移动时,可以感觉到圆球位置的更新不连贯。设置Stage.frameRate为Stage.FRAME_MOUSE: ```typescript Laya.stag...

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

822. captureScreen的回调函数的参数ImageData(类型是一个arrayBuffer)如何获得 [ 82%]

... 0); let canvas = htmlCanvas.getCanvas(); let context = canvas.getContext('2d'); var imageData = context.getImageData(0, 0, 128, 128);请问该如何从canvas里获取captureScreen需要的imageData? 2017-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

823. 分享水波一个shader [ 82%]

...cision mediump float; #endif  #include "Lighting.glsl";   uniform sampler2D u_MainTex; uniform sampler2D u_NoiseTex; uniform vec3 u_CameraPos; uniform vec3 u_AmbientColor; uniform DirectionLight u_DirectionLight; uniform float u_Time;  varying vec2 v_textcoord; varying vec3 v_normal; varying vec4...

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

824. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 82%]

...      }                     tex = new Texture2D(0, 0, format, false, false);                     tex.wrapModeU = exports.WarpMode.Clamp;                     tex.wrapModeV = exports.WarpMode.Clamp;              ...

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

825. WaterPrimaryMaterial的使用 [ 82%]

...rial: Laya.BaseMaterial = new WaterMaterial();         Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, functio...

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

826. [LayaAir3]3.3.2与设置组件灰显相关的 Bug 和 Crash [ 82%]

...gClass } = Laya; interface AnimatorPlayScriptInfo { animator: Laya.Animator2D; layerindex: number; playState: Laya.AnimatorState2D; } /** * 继承自AnimatorStateScript(动画状态脚本) */ @regClass() export class AnimationScript2D extends Laya.AnimatorState2DScript { /**动画的状态信息 */ ...

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

827. 寻路导航示例中添加Laya.PathFind组件报异常 [ 81%]

...区域模型隐藏 meshSprite3D.active = false; var heightMap: Laya.Texture2D = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Laya.Texture2D; //初始化MeshTerrainSprite3D this.terrainSprite = Laya.MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.m...

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

828. 3D开启多线程报错 [ 81%]

... 报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signature provided.     at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225)     at Texture2D.__proto.recreateResource (laya.d3.js:37271)     ...

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

829. 微信小游戏 关系链数据上屏绘制问题 [ 81%]

...小游戏 关系链数据上屏绘制是获取上屏(canvas.getContext('2d'))会报错,普通2D微信小游戏正常   VM291:1 gameThirdScriptError Cannot set property '__proto__' of null TypeError: Cannot set property '__proto__' of null     at HTMLCanvasElement.n.getContext (http://127.0.0....

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

830. Laya3.0 图片拼合缩放会导致两张图片之间有一条横线[已解决] [ 81%]

....loader.load("http://103.219.177.59:63344/%2 ... ot%3B, Laya.Loader.TEXTURE2D).then((texture: Laya.Texture2D) => {             //在U方向上使用WARPMODE_CLAMP             texture.wrapModeU = Laya.WrapMode.Clamp;             //在V方向使用WARPMODE_CLAMP             ...

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