大约有 1,764 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0054 秒)
Laya_社区(623) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(86) Laya2.0_api(67) laya_api(64)
...enderObjs/NativeOBJ/NativeSkinRenderElementOBJ" NativeSkinRenderElementOBJ Class NativeSkinRenderElementOBJ Hierarchy NativeRenderElementOBJ NativeSkinRenderElementOBJ Implements IRenderElement Index Constructors constructor Properties _nativeObj _owner _shaderInstances _skinnedData Accessors _geome...
来源: Laya3.0_api 发布时间: 20231115
...有问题。代码如下:附件是两个音频文件 export default class GameMain extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameMain.instance = this; /...
来源: Laya_社区 发布时间: 20200925
...deo播放视频 * @ author:xs * @ data: 2024-03-05 16:20 */ export default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("htt...
来源: Laya_社区 发布时间: 20240305
... 1 个回复 Jim.邹 赞同来自: 已解决: 通过:getComponent(clas:Class) https://layaair.ldc.layabox.co ... onent() 2018-12-11 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Jim.邹 相关问题 两个对象new了一个相同...
来源: Laya_社区 发布时间: 20181211
...spine官方的goblin例子,替换的图片全在atlas里// 程序入口 class GameMain{ private m_skeleton : Laya.Skeleton; private m_templet : Laya.Templet; constructor() { Laya.init(1334,750,Laya.WebGL); this.m_templet = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parse...
来源: Laya_社区 发布时间: 20180126
...0, mSpacingX, mSpacingY, mAnimationArray = [], mFactory, mActionIndex = 0; class PerformanceTest_Skeleton { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas ...
来源: Laya2.0_示例 发布时间: 20251219
... this.listArr[0].refresh() } /** * 创建BOX */ class Item extends Laya.Box{ public static WID:number =100; public static HEI:number =30; constructor(){ super() this.size(Item.WID,Item.HEI); var img1 =n...
来源: Laya_社区 发布时间: 20190522
... this.bg1.loadImage("war/background.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; })(Laya.Sprite);报错 "TypeError: this.addChild is not a function at BackGround (file:///D:/test/laya/myLaya/src/BackGround.js:6:14) at Game (file:///D:/tes...
来源: Laya_社区 发布时间: 20181003
...了一个简单的示例,演示了如何使用视频纹理: const { regClass, property } = Laya; /** * 使用视频纹理 */ @regClass() export class Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D;...
来源: Laya3.0_文档 发布时间: 20251010
...mouseover和 mouseout 因此可以扩展一下 第一步 修改此类: class HTMLHitRect { constructor() { this.rec = new Laya.Rectangle(); this.isMouseOver = false; this.reset(); } reset() { ...
来源: Laya_社区 发布时间: 20200724