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

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

121. IDE1.7.19.1beta打包apk后后,播放spine动画出现图片缺失 [ 71%]

...    versionCode 1         versionName "1.0"     }     sourceSets.main{         jniLibs.srcDir 'libs'     }     buildTypes {         release {             minifyEnabled false             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pr...

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

122. LayaUI中的input组件不显示 [ 71%]

...rl':'res/atlas/comp.json'} ] Laya.loader.load(res,Laya.Handler.create(this,Main)); } function Main(){ Laya.stage.addChild(new loginUI()); } })();   附件 : --> 2017-11-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个...

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

123. 设置遮罩(JavaScript-LayaAir基础篇(JS)-位图) [ 71%]

...类代码如下 ```javascript import GameConfig from "./GameConfig"; class Main { constructor() { //根据IDE设置初始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, GameConfig.height); else Laya.init(GameConfig.width, GameConfig.height, Laya["WebGL"]); Laya.stage.scaleMode = GameCo...

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

124. [LayaAir3]V3.2 | 调试结果不一致,导致无法判断结果? [ 71%]

...结果? const { regClass, property } = Laya;  @regClass() export class Main extends Laya.Script {   testData = new Laya.Vector3(1, 1, 1);   @property(Laya.Camera)   camera: Laya.Camera;    onStart() {     //@ts-ignore     window.camera = this.camera;     console.log("Game start", this....

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

125. 描边Shader,使用了两个Pass [ 71%]

...form mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat = mat3(u_WorldMat); v_Normal = worldMat * a_Normal; gl_Position.xy += v_Normal.xy * 0.04; }` var outline_ps = ` #ifdef FSHIGHPRECISION precision highp float; #els...

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

126. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 71%]

...t; import Templet = Laya.Templet; import Skeleton = Laya.Skeleton;  class Main {  constructor() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Stat.show();  //棋子动画 this.genSpine("res/spine/ludo_qizidongzuo.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => {...

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

127. 分包编译问题 [ 71%]

...动chrome出现错误: Error processing launch: Error Could not attach to main target Laya中的宏编译要怎么用啊 微信小程序—未找到入口 app.json 文件,或者文件读取失败,请检查后重新编译。 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。...

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

128. Laya.Byte使用getUint16读取错误 [ 70%]

...动chrome出现错误: Error processing launch: Error Could not attach to main target 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 关于使用matterjs物理引擎鼠标问题 请问2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗...

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

129. 报错:__glsl is not defined,而且bundle.js出现__glsl [ 70%]

...mp;& Laya.Scene.open(GameConfig.startScene); } } //激活启动类 new Main(); }(__glsl)); 但是我没用到任何GLSL相关内容, 附件 : --> bundle.rar 2020-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 ...

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

130. 一个关于getPixels的问题 [ 70%]

一个关于getPixels的问题 空工程中代码如下: Main.js: const Sprite = Laya.Sprite; const Text = Laya.Text; const Texture = Laya.Texture;  Laya.init(800, 600);  var txt = new Text(); txt.pos(200, 200); txt.color = "#FFFFFF"; txt.text = "000000"; Laya.stage.addChild(txt);  var spr = n...

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