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

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

151. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 86%]

...SHOWALL; //背景颜色 Laya.stage.bgColor = "#232628"; //图像资源 var res:Array = [ "../../../../res/ui/vscroll.png", "../../../../res/ui/vscroll$bar.png", "../../../../res/ui/vscroll$down.png", "../../../../res/ui/vscroll$up.png", "../../../../res/ui/tree/clip_selectBox.png", "../../../../res/...

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

152. Resources already exist,is repeated loading 加载特效报重复加载 [ 86%]

Resources already exist,is repeated loading 加载特效报重复加载 export default class TransformDemo{     private scene:Laya.Scene3D;     private position:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private position1:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private rotat...

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

153. 射线检测-射线检测 [ 86%]

...ya.Vector3(0, 1, 3)); camera.clearColor = null; Laya.loader.create(["../../res/threeDimen/skinModel/NvWu/NvWu-shenminvwu.lm", "../../res/threeDimen/skinModel/CunMinNan/CunMinNan-cunminnan.lm", "../../res/threeDimen/skinModel/XiaoFeiLong/XiaoFeiLong-xiaofeilong.lm", "../../res/threeDimen/skinModel/Pa...

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

154. 关于loader的问题 [ 86%]

...不传demo了,直接浏览器控制台输入 Laya.loader.load("aa").then(res=>{console.log("success",res)}).catch(res=>{console.log("fail",res)}) 期望返回失败 实际返回成功 附件 : --> 2023-09-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

155. VR场景-VR场景 [ 86%]

....Stage.SCREEN_NONE; var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/Arena/Arena.ls")) //与3d场景的不同是添加了vr相机 var vrCamera = scene.addChild(new Laya.VRCamera(0.03, 0, 0, 0.1, 100)); vrCamera.transform.translate(new Laya.Vector3(0, 2, 0)); vrCamera.clear...

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

156. 物理引擎-Slingshot [ 86%]

...etup(); })(); function setup() { initMatter(); initWorld(); Laya.stage.on("resize", this, onResize); } function initMatter() { var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); v...

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

157. 三个图好像无法绑定不同的事件? [ 85%]

...new Laya.Sprite(); img1.loadImage('https://layaair.ldc.layabox.com/demo/h5/res/apes/monkey2.png',100,100,90,90); Laya.stage.addChild(img1); img1.on(Laya.Event.CLICK,this, function(name){ console.log(name);},['图1']); var img2 = new Laya.Sprite(); img2.loadImage('https://layaair.ldc.layabox.com/demo...

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

158. 照相机-3D空间转2D空间 [ 85%]

...ght = scene.addChild(new Laya.DirectionLight()); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"));...

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

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

...悟 • 2019-12-16 11:20 class AnimatorDemo { private scene:Laya.Scene3D; resource constructor() { //初始化引擎 Laya3D.init(0, 0); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); Laya.stage.frame...

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

160. 百度小游戏的5M本地包与动态资源加载(TypeScript-小游戏适配文档-百度小游戏) [ 85%]

...比如示例中引用的就是本地路径, ```json Laya.Texture2D.load("res/layabox.png"); ``` 如果项目的目录中,全部大小加起来不超过5M的话,只要能找到本地的资源,怎么写也没问题。 但是, 百度小游戏的本地包有5M的限制,一旦超过这个限...

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