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

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

441. Sprite3D-Sprite3D变换 [ 71%]

...inModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey1 = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey2 = Laya.Sprite3D.instantiate(layaMonkey1, scene, false, new Laya.Vector3(0, 0, 0)...

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

442. 使用外部引擎播放layaair制作的.ani [ 71%]

...ader.load('./card/atlas/card.atlas', Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); tl.on(...

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

443. Cannot read property 'toDefault' of undefined报错是什么原因 [ 71%]

...如下:Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.ca...

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

444. laya.net.URL_API3.0 [ 71%]

...ya/net/URL.ts:70 自定义URL格式化的方式。例如: customFormat = function(url:String):String{} Parameters url: string Returns string Static formatURL formatURL(url: string, base?: string): string Defined in laya/net/URL.ts:80 包含normalizedURL功能,并且合并base,如果base没有...

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

445. 物理引擎-Slingshot [ 71%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Render = Laya.Render; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var stageWidth = 800; var stageHeight = 600; var Matter = window.Matter; var LayaRen...

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

446. Sprite3D-Sprite3D克隆 [ 71%]

...inModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(layaMonkey, scene, fal...

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

447. 照着官方文档写的 Dialog 报错? [ 71%]

照着官方文档写的 Dialog 报错? var LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, ...

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

448. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 71%]

...res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }...

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

449. 绘制三角形、多边形及根据数据绘制图案(ActionScript-LayaAir基础篇(AS3)-矢量图) [ 71%]

...  private var sp:Sprite;                    public function Sprite_DrawShapes()         {             Laya.init(500, 300, WebGL);             drawSomething();         }            private function drawSomething():void   ...

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

450. 报错,这不是个构造函数 "StartPage is not a constructor" [ 71%]

... a constructor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,3...

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