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

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

701. laya3D导入动画材质在安卓手机和电脑上显示正常,在苹果手机显示异常 [ 60%]

...ck/Conventional/puzzleB.lh" ]; Laya.loader.create(this.resource, Laya.Handler.create(this, this.onLoadFinish)); } private onLoadFinish() { //初始化场景 this.scene = new Laya.Scene3D(); Laya.stage.addChild(this.scene); this.scene.ambientColor = new Laya.Vector3(0.5, 0.5, 0.5); //初始化...

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

702. 滤镜的集中实现 [ 60%]

...ge.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,completeLoad),null,Loader.ATLAS); } public function completeLoad():void { //原始位图 createImg(200,50); //红色滤镜 createRedFilter(); //创建发光滤镜位图**/ createGlowFilter(); //创建阴...

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

703. socket.sent [ 60%]

socket.sent 下面是复制的源码 openHandler 和 receiveHandler 没有响应  class Game { private socket: Laya.Socket; private byte: Laya.Byte; constructor() { //初始化引擎 //Laya.init(600, 400, Laya.WebGL); Laya.init(600,400); Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stag...

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

704. 关于大量图片加载绘制后的内存暴增的疑问 [ 60%]

...e; import laya.net.Loader; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Demo { private var num:Number=0;//加载图片的个数 private var sp:Sprite;//显示图片的显示对象容器 private var texture:Texture;//预加载...

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

705. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 60%]

...3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.create(this,function(scene:Laya.Scene3D){ Laya.stage.addChild(scene) as Laya.Scene3D; console.log("加载3D场景") //添加照相机 var camera: Laya.Camera = (scene.addChild(new Laya.Camera(0, 0.1, 1000))) as Laya.C...

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

706. 示例 骨骼动画换装 加不上点击事件 [ 60%]

....on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, changeSkin); } 2017-08-18 添加评论 免费帖 --> 分享 微博 QZONE ...

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

707. ttf字体带版本号会导致加载不正常 [ 60%]

...tName="fzy3jw"; ttfloader.load("font/fzy3jw.ttf"); ttfloader.complete=Laya.Handler.create(this,()=>{ let txt:Laya.Text=new Laya.Text(); txt.text=""; txt.font="fzy3jw"; txt.fontSize=50; Laya.stage.addChild(txt); })我应该修改哪里? 附件 : --> 2019-04-03 添加评论 免费帖 --> 分享 ...

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

708. 更新到1.7.6beta之后,HBox有bug [ 60%]

...0); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case...

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

709. 材质-BlinnPhong材质加载 [ 60%]

...Event; import laya.ui.Button; import laya.utils.Browser; import laya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGLContext; import common.CameraMoveScript; import common.Tool; /** * ... * @author */ public class BlinnPhongMaterialLoad { private var rotation:Vector3 = new Vector3(0, 0...

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

710. 高级应用-Laya3D与网页混合 [ 60%]

... import laya.events.Event; import laya.resource.Texture; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; public class Laya3DCombineHtml { public function Laya3DCombineHtml() { __JS__("var div = document.createElement('div')"); __JS__("div.innerHTML = '此内容来...

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