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

大约有 4,336 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0106 秒)

781. laya.d3.core.light.SpotLight_API3.0 [ 86%]

...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...

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

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

...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

783. getimagedata直接调用无法获取有效像素问题 [ 86%]

...在调用了 texture的 getpixels 得到有效数据。__proto.getPixels=function(x,y,width,height){ if (Render.isWebGL){ return RunDriver.getTexturePixels(this,x,y,width,height); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawTexture(this,-x,-y,this.width,thi...

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

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

... 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

785. 3d场景下载出错 [ 86%]

...read property '_addReference' of undefined;at api request success callback function TypeError: Cannot read property '_addReference' of undefined     at t.<anonymous> (https://usr/game.js:49:8301)     at e.n._parse (https://usr/game.js:66:1995)     at Function.t._createNodeByJson (https:/...

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

786. laya.d3.shader.ShaderCompile3D [ 86%]

...lic var sharders:ArrayConstructor DetailShaderCompile3D()Constructorpublic function ShaderCompile3D(name:Number, vs:String, ps:String, attributeMap:Object, uniformMap:Object, includeFiles:*) Parameters name:Number vs:String ps:String attributeMap:Object uniformMap:Object includeFiles:*Method De...

来源: laya_api 发布时间: 20170929

787. 文本-Overflow [ 86%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var Text = Laya.Text; var Browser = Laya.Browser; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(600, 300, WebGL); Laya.stage.alignV = Stage.ALIG...

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

788. laya.d3.core.RenderableSprite3D_API3.0 [ 86%]

...s type: string Optional data: any Returns void callLater callLater(method: Function, args?: any[]): void Inherited from Node.callLater Defined in laya/display/Node.ts:621 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延迟计算数据。 see #runCallLater() Pa...

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

789. 区块地图-带动画的地图 [ 86%]

...ipt、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var TiledMap = Laya.TiledMap; var Rectangle = Laya.Rectangle; var WebGL = Laya.WebGL; var tiledMap; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(1100, 800, WebGL); Lay...

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

790. 分享:IDE使用SWF动画的销毁与反复创建 [ 86%]

...       public class LayaUISample {                  public function LayaUISample() {             //初始化引擎             Laya.init(600, 400);             start();         }         private function start():void         {        ...

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