大约有 1,237 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)
Laya_社区(706) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...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_示例 发布时间: 20260303
...,这里用的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
...[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
...= true;//使用ide设置的 txtInput.on(Event.INPUT, this, onInputChange); private function reset(e:Event = null):void { clickStar = 0; txtInput.text = ""; txtLast.text = "剩余输入:" + WelfareNoticeMgr.MAX_WARD + "字"; } private function onInputChange(e:Event):vo...
来源: Laya_社区 发布时间: 20170812
... public class LayaSample { private var _stateMachine:StateMachine; public function LayaSample() { Laya3D.init(1000, 500,true); //适配模式 Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.scr...
来源: Laya_社区 发布时间: 20190416
...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...
来源: Laya2.0_示例 发布时间: 20260303
...ddPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 private function beginLoad():void { //加载引擎需要的资源 //Laya.loader.load("res/atlas/comp.atlas", Handler.create(this, onLoaded)); Laya.load...
来源: Laya_社区 发布时间: 20180513
...or = "#1b2436"; //创建缓动文本 createTween(); } //创建缓动文本 private function createTween():void { //"LayaBox"字符串总宽度 var w:int = 800; //文本创建时的起始x位置(>>在此使用右移运算符,相当于/2 用>>效率更高) var offsetX:int = Laya.stage.width - w >> 1...
来源: Laya2.0_文档 发布时间: 20210715
...rotected Methods MethodDefined By __runComplete(handler:Handler):void private SoundChannelProperty DetailcompleteHandlerpropertypublic var completeHandler:Handler 播放完成处理器。 durationproperty duration:Number [read-only] 获取总时间,单位是秒。 Implementation p...
来源: Laya2.0_api 发布时间: 20190513
...,二维码生成不了,麻烦老师看下是什么问题,谢谢! private initCode() { var div: any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div, { width: 100, height: 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.o...
来源: Laya_社区 发布时间: 20180412