大约有 1,625 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0050 秒)
Laya_社区(663) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya_示例(58) Laya3.0_文档(54) Laya2.0_示例(54)
...(instance instanceof Object) { var copyInstance = {...(instance as { [key: string]: any }), } as { [key: string]: any } for (var attr in instance) { if ((instance as Object).hasOwnProperty(attr)) copyInstance[attr] = GameUtils.deepCopy<any>(instance[attr]) } return copyInstance as T } return i...
来源: Laya_社区 发布时间: 20230625
...new Laya.Browser.window.QRCode(div, { width: 100, height: 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.once("click", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler(): void { var url: string = this.q...
来源: Laya_社区 发布时间: 20180412
...playMusic背景音乐播放无声音 public static function playSound(url:String, loops:int = 1, complete:Handler = null, soundClass:Class = null, startTime:Number = 0):SoundChannel { if ((!_isActive && loops != 0) || !url) return null; if (_muted) return null; _recoverWebAudio(); url = URL....
来源: Laya_社区 发布时间: 20190115
...+ "_" + index); }); 播放时大概 playAniBody(actionName: string, direction: number, completeFun: Function = null): void { this.aniBody.destroyChildren(); this.aniBody.clear(); let loopPlay: boolean = true; let key: string = action...
来源: Laya_社区 发布时间: 20170615
...= null if (url) this.preload(url) } /** * 预加载loading页面 * @param {String} url loading页面url */ async preload(url = 'loadingpage.scene') { if (this._loadScene && url === this._loadScene.url) return let scene = await this._getLoadingScene(url) this._loadScene = scene Laya.Scene.set...
来源: Laya_社区 发布时间: 20181124
...ndler; import WebGL = Laya.WebGL; export class UI_TextArea { private skin: string = "../../res/ui/textarea.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode ...
来源: Laya_示例 发布时间: 20241126
...式化后的新路径 */ public static function addVersionPrefix(originURL:String):String { if (manifest && manifest["resource/"+originURL]) return manifest["resource/"+originURL] + "/resource/" + originURL; return originURL; } 我这样修改了下api中的这...
来源: Laya_社区 发布时间: 20170815
...convertSubShader _convertSubShader(customShader: Shader3D, replacementTag: string, subshaderIndex?: number): void Inherited from RenderElement._convertSubShader Defined in laya/d3/core/render/RenderElement.ts:177 切换Shader Parameters customShader: Shader3D replacementTag: string Default value sub...
来源: Laya3.0_api 发布时间: 20231115
...missionRate : int = 0发射器发射速率ParticleSetting emitterType : String = null发射器类型,"point","box","sphere","ring"ParticleSetting emitterVelocitySensitivity : Number = 1粒子受发射器速度的敏感度(需在自定义发射器中编码设置)ParticleSetting endVeloci...
来源: laya_api 发布时间: 20170929
...* 测试预加载 * */ private function preSwfAssetsTest():void { var path:String = "assets/layaAsset.swf"; var path1:String = "assets/layaAsset1.swf"; IFlash.preSwfAssets([path,path1]);//这里开始调用预加载 var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener (Event.C...
来源: Laya_社区 发布时间: 20151123