大约有 1,237 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)
Laya_社区(706) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...port WebGL = Laya.WebGL; import URL = Laya.URL; export class Particle_T2 { private sp: Particle2D; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; La...
来源: Laya2.0_示例 发布时间: 20260303
...port WebGL = Laya.WebGL; import URL = Laya.URL; export class Particle_T3 { private sp: Particle2D; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; La...
来源: Laya2.0_示例 发布时间: 20260303
...mp/yard_swimpool02.png"; export default class Yard extends Laya.Sprite { private swimpoolani:Laya.Animation; constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private o...
来源: Laya_社区 发布时间: 20190805
...暂停继续播放,只能从头开始,pc端正常,代码如下 private playSoundLead() { if (!this.soundMan || this.playBoo) { this.soundMan = Laya.SoundManager.playMusic(this.leadSoundUrl, 1, Handler.create(this, this.soundEndFun1)); this._...
来源: Laya_社区 发布时间: 20190919
...ive模式出包。手机上调用此方法返回的对象类型不对 private _agentTexture: any; private _agent:Laya.Sprite; public startDrag(dragCom: Laya.Sprite, touchID: number, sourceData?: any): void {let bounds = dragCom.getSelfBounds(); this._agentTexture = Laya.Sprite.drawToTextur...
来源: Laya_社区 发布时间: 20210911
...邀请: 与内容相关的链接 提交 2 个回复 nieyiwei 赞同来自: private var _guideImage:Image; public function main():void { _guideImage = new Image(); _guideImage.source = Loader.getRes("source/png/ui/1/guideImg.png"); tweenGuide1(_guideImage ); Tween.clearAll(_guid...
来源: Laya_社区 发布时间: 20161216
...共享材质,用于合批 public batchMat: Laya.Material; //颜色数目 private _colorNums = 20; //精灵数目 private _spriteNums = 200; private _createColorBufferData() { //随机给20个颜色值 let colorBuffer = new Float32Array(20 * 4); for (var i = 0; i < this._colorNums; i++) { let of...
来源: Laya3.0_文档 发布时间: 20251010
...Texture2D onAsynLoaded(url:String, data:*, params:Array):void[override] private DataTexture2DProtected Methods MethodDefined By detoryResource():void[override] 销毁资源。 DataTexture2D recreateResource():void[override] 重新创建资源,如果异步创建中被强制释放再创...
来源: laya_api 发布时间: 20170929
...动画的宽度高度, 求前辈指点下,谢谢! 代码如下: //private strAniConfPath:string = "res/fighter/fighter.json" //private aniFighter:Animation; this.aniFighter = new Animation(); this.aniFighter.loadAtlas(this.strAniConfPath); Laya.stage.addChild(this.aniFighter); this...
来源: Laya_社区 发布时间: 20181023
...caleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createText(); } private createText(): void { var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发行商,面向Flash开发者提供HTML5开发技术...
来源: Laya_示例 发布时间: 20260303