大约有 1,204 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0069 秒)
Laya_社区(690) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(59) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...aleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createInput(); } private createInput(): void { var inputText: Input = new Input(); // 移动端输入提示符 inputText.prompt = "Type some word..."; //多行输入 inputText.multiline = true; inputText.wordWrap = true; inputText.size(350, 1...
来源: Laya_示例 发布时间: 20241125
...ypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { console.log("----------the event resize-------") console.log("ref-resize:", this.myref.getBounds()); console.log("pan-resize", this.mypan.getBounds()); } private fitDOMElements...
来源: Laya_社区 发布时间: 20170720
...Texture2D onAsynLoaded(url:String, data:*, params:Array):void[override] private Texture2DProtected Methods MethodDefined By detoryResource():void[override] 销毁资源。 Texture2D recreateResource():void[override] 重新创建资源,如果异步创建中被强制释放再创建,则...
来源: laya_api 发布时间: 20170929
...200); spchild.on(Event.CLICK,this,onClickSpChild); sp.addChild(spchild); } private function onClickSpChild(e:Event):void { e.stopPropagation(); trace("child"); } private function onClickSp(e:Event):void { trace("sp"); } } } 2017-09-18 1 4 分享 微博 QZONE 微信 lllzzz6311 赞同来自: 怎样才...
来源: Laya_社区 发布时间: 20170918
为什么字符串不能连接? private getRandomColor():String { let arr:Array<String>=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"]; let str:String="#"; for(let i:number=0;i<6;i++){ let index:number=arr.length*Math.random(); str+=arr[index];//在IDE里面这句报...
来源: Laya_社区 发布时间: 20171118
..."#1b2436"; //创建缓动文本 this.createTween(); } //创建缓动文本 private createTween():void{ //"LayaBox字符串总宽度" var w:number = 800; //文本创建的起始位置(>>在此使用右移运算符,相当于/2 用>>效率更高) var offsetX:number = Laya.stage.width - w >> 1; //显...
来源: Laya2.0_文档 发布时间: 20210715
... { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); IFlash.setSize(960, 640); //2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否为横屏模式 IFlash.setBgcolor...
来源: Laya_社区 发布时间: 20151218
...,这里用的2.3版本,在GameControl onEnable中执行如下代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = this._sp; }) }之后编译项目 2...
来源: Laya_社区 发布时间: 20191215
...ion); 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.Stat.show(); this.sc...
来源: Laya_示例 发布时间: 20241125
...[2018/08/21 11:20:31:5607] NOTICE: lws_context_init_client_ssl: doing private key filepath [2018/08/21 11:20:31:5608] NOTICE: Loaded client cert private key /var/mobile/Containers/Data/Application/F09CD563-F37F-4B17-A1DB-742CF5D947D1/Library/Caches/ssl.pem [2018/08/21 11:20:31:5608]...
来源: Laya_社区 发布时间: 20180821