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

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

741. loading界面实现图片预加载后,创建Sprite执行loadImage出错 [ 72%]

loading界面实现图片预加载后,创建Sprite执行loadImage出错 1、没有使用IDE; 2、仿照sample里面的 Loader_ProgressAndErrorHandle.js 构建了一个 Loading界面。 3、所有图片均成功载入 4、切换界面时,进入游戏界面,构造Sprite出错。       切...

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

742. 显示对象的mask缩放为0时遮罩效果不生效 [ 72%]

...不见的,但是没有生效 Laya.init(640, 1136); let testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = t...

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

743. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 72%]

...tionLight = scene.addChild(new Laya.DirectionLight()); //加载模型 Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp) { //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图...

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

744. Cannot read property 'rayCast' of undefined [ 72%]

....8, -1); this.directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); Laya.Sprite3D.load("res/scene/LayaScene_webgl_sky/Conventional/webgl_sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=t...

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

745. laya.ui.ComboBox_API3.0 [ 72%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...

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

746. 舞台转换角度 [ 72%]

...如何 转换 角度 我想给 舞台转换180°,虽然我可以new Laya.Sprite() 转换这个sprite的角度,但是list之类的组件滑动 就会反向移动 2017-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...

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

747. 3D网格添加刚体后设置欧拉角出现位置错误 [ 72%]

...  //平面加载         let plane = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10)));         plane.transform.position = new Laya.Vector3(0, -2, 0);         let planeMat = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/thre...

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

748. laya.ui.RadioGroup_API3.0 [ 72%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...

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

749. 使用loadImage加载一个图片后的点击事件 [ 72%]

使用loadImage加载一个图片后的点击事件 var Sprite = Laya.Sprite; var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage(img,360, 300, 60, 60, Laya.Handler.create(this, function(){         ape.on(Laya.Event.CLICK, this, function(){         console.log(111)     }) }));...

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

750. laya.ui.Tab_API3.0 [ 72%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...

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