大约有 312 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0075 秒)
...: exception info:[TypeError: this._nativeObj.addGlobalValueDefine is not a function.(In "this._nativeObj.addGlobal ValueDefine(modifyType, type, size, defaultData)", "this._nativeObj.addGlobalValueDefine" is undefined)] at line 4664. 附件 : --> 2020-02-18 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20200218
...re = new Laya.Texture(this.tempTexture2D); } // Laya.timer.once(110, this, function(){ let cans = Laya.Browser.document.getElementById("layaCanvas"); var spi = new Laya.Sprite(); var spi1 = new Laya.Sprite(); var spi2 = new Laya.Sprite(); this.tempTexture2D.loadImageSource(cans, true); spi.texture =...
来源: Laya_社区 发布时间: 20191230
...置之后纹理宽高可能会发生变化。 */ __proto.loadImageSource=function(source,premultiplyAlpha){ (premultiplyAlpha===void 0)&& (premultiplyAlpha=false); var width=source.width; var height=source.height; this._width=width; this._height=height; this._setWarpMode(/*laya.webgl.WebGLCo...
来源: Laya_社区 发布时间: 20190809
...Loader; import laya.utils.Handler; public class Animation_Example { public function Animation_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 init();//初始化 } private function init():void { var animation...
来源: Laya3.0_api 发布时间: 20231115
...============================ 代码调用: D3Helper.getMaterialByName = function (name) { if (undefined == D3Helper.materialDic[name]) { var material = new Laya.StandardMaterial(); D3Helper.materialDic[name] = material; [b]var testTexture = Laya.Texture2D.load(name);[/b] material.diffuseTexture =...
来源: Laya_社区 发布时间: 20180206
...ss with type parameter Constructor Property Method Object literal Variable Function Type alias Static property Static method Enumeration Interface
来源: Laya3.0_api 发布时间: 20231115
...存在,但没渲染出。 导微信小程序报错window.focus is not a function 请教下微信小游戏的内存和数据缓存? 问题状态 最新活动: 2018-01-22 11:56 浏览: 6704 关注: 4 人 sfg007 • 2018-02-01 17:46 虚拟机? hill_0219 • 2018-02-05 09:48 手机 hw520ok • 201...
来源: Laya_社区 发布时间: 20180120
...prite_Example { private var sprite:Sprite; private var shape:Sprite public function Sprite_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { sprite = new Sprite();/...
来源: Laya3.0_api 发布时间: 20231115
...from "../script/base/BaseScene"; import BaseScene=base.BaseScene; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class CustomSceneUI extends BaseScene { public txt_hello:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Custo...
来源: Laya_社区 发布时间: 20200827
...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