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

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

641. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 80%]

...c onUpdate(){ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.s...

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

642. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 80%]

...c onUpdate(){ var seed = Laya.timer.currTimer * 0.002; for (var i = 0, n = this.lights.length; i 加载场景,并且添加多光源 ```typescript Laya.Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Laya.Handler.create(this, function (scene) { //添加到场景 Laya.s...

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

643. 图集动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 80%]

...pt //初始化舞台 Laya.init(1334, 750,Laya.WebGL); //创建动画实例 this.roleAni = new Laya.Animation(); //加载动画图集,加载成功后执行回调方法 this.roleAni.loadAtlas("res/atlas/role.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //添加到舞台 Laya.stag...

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

644. 通过html的input类型file上传图片,然后通过FileReader获取图片数据之后设置laya的image.skin图片不显示 [ 80%]

... __proto.uploaderHandler=function (files) {              var self=this; var file=files[0];              var reader=new FileReader();               reader.onload=function () {                         this.headIcon.loadImage(this.result); 或者 this.headIcon.skin=thi...

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

645. this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function [ 80%]

this.bitmap.activeResource is not a function TypeError: this.bitmap.activeResource is not a function if (bitmap&&bitmap._addReference){ bitmap._addReference(); } 这个代码过滤已经加了,但是会报下面这个错 this.bitmap.activeResource is not a function TypeError: this.bitmap....

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

646. unity里导出的骨骼动画无法读取 [ 80%]

...错   __proto._getAvatarOwnersByClip=function(clipIndex){ var frameNodes=this._clips[clipIndex]._nodes; var frameNodesCount=frameNodes.length;   其中frameNodes为空   附件是骨骼动画fbx文件   Unity 5.6.0f3  laya1.7.13 附件 : --> new.rar 2018-01-16 添加评论 免费帖 --> 分享 ...

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

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

...l: "res/atlas/comp.atlas", type: Laya.Loader.ATLAS }], Laya.Handler.create(this, this.onLoaded), Laya.Handler.create(this, this.onLoading)); } static aaa(): void { } private onLoaded(): void { var info = new view.GameInfo(); info.zOrder = 99;//置最顶,这句话不写图层看不见 // info.init();...

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

648. 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 [ 80%]

...t type="text/javascript"> function convertCanvasToImage(canvas,callback,thisObj) { var image = new Image(); image.onload = function() { console.log("图片已经加载"); callback(image,thisObj) }; console.log("图片加载中...") image.src = canvas.toDataURL("image/png"); return image; } </s...

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

649. [0]Timer的偶发性Bug [ 80%]

...回复 cmxStar 赞同来自: 我们项目也遇到过这bug, 改成 delete this._map[handler.key]; 2023-10-26 0 2 分享 微博 QZONE 微信 _Nodep_ 赞同来自: 嗯,合理 2023-10-26 0 0 分享 微博 QZONE 微信 开房车环游世界 赞同来自: Tween 偶尔停止 我记得当年做laya1.0...

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

650. 切换位图,点击图片距离容器的区域也会触发点击事件 [ 80%]

...距离容器的区域也会触发点击事件 function TransitionImg() { this.flag = false; //判断条件 this.img1 = "../laya/assets/comp/haoyoubang-liang.png"; //地址 this.img2 = "../laya/assets/comp/haoyuobang-hui.png"; var img = new Laya.Sprite(); //实例 img.width = 300; //宽高 img.height...

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