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

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

1001. 微信小游戏关系链 我创建了一个开放域的项目 但是报错了 [ 76%]

...tItem() { RankListItem.__super.call(this); this.size(WID, HEI); this.img = new Laya.Image(); this.addChild(this.img); this.setImg = function (src) { this.img.skin = src; } } Laya.class(RankListItem, "RankListItem", Laya.Box); //rankList var rankList = new Laya.List(); rankList.itemRender = RankListI...

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

1002. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 76%]

...身材质: ...... //添加3D场景----------------------- this.scene = new Laya.Scene(); Laya.stage.addChild(this.scene); //方法一:直接异步加载 // var mesh:Laya.Mesh = Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D = new Laya.Mesh...

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

1003. Cannot read property 'load' of null [ 76%]

...class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static getInstance():MapManager { if(null==this.s_instance) { this.s_instance=new MapManager(); this.s_instance.init(); } return this.s_instance; } priva...

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

1004. AS版本生成的js中出现了this.Buffer() [ 76%]

...版本生成的js中出现了this.Buffer() 源代码:var voiceBase64:* = new Buffer(voice); js文件:new /*no*/ this.Buffer(voice);   我每次还需要手动去替换掉·· 2018-08-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

1005. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 76%]

...(); showTotalSeconds(); createController(); } function showBg() { var bg = new Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> 1, Laya.stage.height - bg.height >> 1); Laya.stage.addChild(bg); } function createTimerAnimation() { counter = new Clip(clipSkin, 10, 1); counter.aut...

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

1006. laya.maths.Vector4_API3.0 [ 76%]

...multiply normalize scale subtract transformByM4x4 Constructors constructor new Vector4(x?: number, y?: number, z?: number, w?: number): Vector4 Defined in laya/maths/Vector4.ts:39 创建一个 Vector4 实例。 Parameters Default value x: number = 0 X轴坐标。 Default value y: number = 0 Y轴坐...

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

1007. Sprite-切换纹理 [ 76%]

...ler.create(this, onAssetsLoaded)); })(); function onAssetsLoaded() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 switchTexture(); ape.on("click", this, switchTexture); } function switchTexture() { var te...

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

1008. 鼠标交互-鼠标交互 [ 76%]

...arget(); createLogger(); } function createInteractiveTarget() { var rect = new Sprite(); rect.graphics.drawRect(0, 0, 200, 200, "#D2691E"); rect.size(200, 200); rect.x = (Laya.stage.width - 200) / 2; rect.y = (Laya.stage.height - 200) / 2; Laya.stage.addChild(rect); //增加鼠标事件 rect.on(Even...

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

1009. 垂直布局容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

...码如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VBox }) public vbox: Laya.VBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vbox.pos(100,...

来源: Laya3.0_文档 发布时间: 20251010

1010. 打包app后可以横屏旋转 [ 76%]

...   super();                          mainCan = new Sprite();             Laya.stage.addChild(mainCan);                          dialogCan = new Sprite();             Laya.stage.addChild(dialogCan);               ...

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