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

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

891. ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? [ 65%]

ReferenceError: Loader is not defined 搞不懂引擎原生的也会报这个错? onEnable() { //戏控制脚本引用,避免每次获取组件带来不必要的性能开销 thi   s._loveControl = this.getComponent(LoveControl);  //点击提示文字,开始游戏 this.label_start.on(Laya.Ev...

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

892. 滤镜-颜色滤镜 [ 65%]

...ER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); orig...

来源: Laya_示例 发布时间: 20241002

893. 在UI类里调用启动类的静态函数失败了 [ 65%]

... constructor() { Laya.init(600, 400); Laya.stage.bgColor = "#123456"; Laya.loader.load([ { url: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.onL...

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

894. Node.prototype._activeHierarchy存在的bug或者说是onEnable和onAwake的坑 [ 65%]

...a有bug,帧属性面板打不开 微信小游戏兼容性bug 部分机型load场景不显示 Loader.load加载json类型的资源,完成后调用Loader.clearRes后,并不能真正释放资源的bug EffectAnimation Bug 拖尾效果BUG,在QQ群里说过。我重新做了个Bug的Demo,Laya里...

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

895. 使用laya官方示例代码制作微信小游戏无法显示 [ 64%]

...制 Laya.ResourceVersion.enable("version.json", Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 new laya.UI_Label(); }   上图为...

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

896. laya.d3.core.Avatar_API3.0 [ 64%]

...reateFromURL off offAll offAllCaller on once _parse destroyUnusedResources load Constructors constructor new Avatar(): Avatar Overrides Resource.__constructor Defined in laya/d3/core/Avatar.ts:45 创建一个 Avatar 实例。 Returns Avatar Properties destoryedImmediately destoryedImmediately: boole...

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

897. 打CPK包在手机上运行会白屏,手机测试型号VIVO1419L。 [ 64%]

...al set ffffffff 10-13 17:31:15.861 6514-6514/com.vivo.vs I/WebViewFactory: Loading com.android.webview version 37 (eng.compiler-arm64) (code 199992) 10-13 17:31:15.861 6514-6514/com.vivo.vs I/LibraryLoader: Loading: webviewchromium 10-13 17:31:15.871 6514-6514/com.vivo.vs I/LibraryLoader: Time to lo...

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

898. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 64%]

...BlinnPhongMaterial = new BlinnPhongMaterial(); //漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = material; ``...

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

899. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 64%]

...al = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private on3DComple...

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

900. 1.7.9LayaIDE 发布出现Cannot find module 'colors'错误 [ 64%]

...at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.<anonymous> (/private/var/folders/g5/h6n06svn2z315kkr_yd3sl340000gn/T/AppTranslocation/00AE3A00-14A8-45D8-BBAE...

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