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

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

291. 灯光-方向光 [ 75%]

...ction, _quaternion, _direction); directionLight.direction = _direction; });class DirectionLightDemo { private scene: Laya.Scene; private _quaternion: Laya.Quaternion; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE...

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

292. 编译后相同的类出现另一个带$1后缀的新类 [ 75%]

...编译后相同的类出现另一个带$1后缀的新类 比如一个类叫class A,编译后的bundle.js里面出现一个class A的类,没有问题,但是还会出现一个 class A$1的类,怎么回事? 附件 : --> 2019-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

293. laya.d3.resource.models.MorphTargetChannel_API3.0 [ 75%]

...rted Menu Globals "laya/d3/resource/models/MorphTarget" MorphTargetChannel Class MorphTargetChannel Hierarchy MorphTargetChannel Index Constructors constructor Properties name targetCount Methods addTarget getTargetByIndex Constructors constructor new MorphTargetChannel(): MorphTargetChannel Defined...

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

294. 性能测试-卡通人物 [ 75%]

...nt = 100, extraSpace = 50, moveSpeed = 2, rotateSpeed = 2, characterGroup; class PerformanceTest_Cartoon { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas L...

来源: Laya2.0_示例 发布时间: 20251130

295. 一个很奇怪的问题,不知道其他同学遇到没有 [ 75%]

...默认生成的程序入口文件,新建一个main.ts,输入以下代码: class main{ constructor(){ Laya.init(600,400); console.log(common.num); } } new main();   这里面访问了另外一个文件common.ts中定义的类: class common{ constructor(){ } public static num : number = 1000000; } ...

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

296. laya.ani.bone.EventData_API3.0 [ 75%]

...d Externals Only exported Menu Globals "laya/ani/bone/EventData" EventData Class EventData 事件数据 Hierarchy EventData Index Constructors constructor Properties audioValue floatValue intValue name stringValue time Constructors constructor new EventData(): EventData Defined in laya/ani/bone/Even...

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

297. 加载-销毁Texture使用的图片资源 [ 75%]

...使用的图片资源不存在,则自动恢复。 */ var GameMain = /** @class */ (function () { function GameMain() { this.isDestroyed = false; this.PathBg = "../../res/bg2.png"; this.PathFly = "../../res/fighter/fighter.atlas"; //初始化引擎 Laya.init(Browser.clientWidth, Browser.clientHeigh...

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

298. 【简单跑酷--JS版】---Lv.3 添加地板 [ 75%]

....__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物品 _proto.ad...

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

299. laya.spine.SpineTexture_API3.0 [ 75%]

...xternals Only exported Menu Globals "laya/spine/SpineTexture" SpineTexture Class SpineTexture Hierarchy SpineTexture Index Constructors constructor Properties realTexture Methods convertWrapMode getImage setFilters setWraps Constructors constructor new SpineTexture(tex: Texture): SpineTexture Define...

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

300. Sprite-根据数据绘制路径 [ 75%]

...ya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_DrawPath { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; La...

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