大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0163 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...ode 添加子节点到指定的索引位置。 Node addChildren(... args):void 批量增加子节点 Node addComponent(type:Class):* 添加组件。 Node addComponentIntance(comp:Component):* 添加组件实例。 Node addInputChild(node:Node):NodeNode addLabel(label:String, index:int):void 增...
来源: Laya2.0_api 发布时间: 20190513
...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { var gap: number = 10; //创建一个Sprite充当音效播放按钮 var soundButton: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Lay...
来源: Laya_示例 发布时间: 20260303
...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.initMatter(); this.initWorld(); Laya.stage.on("resize", this, this.onResize); } private initMatter(): void { var gameWorld: Sprite = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 this.engi...
来源: Laya_示例 发布时间: 20260303
...wei 赞同来自: 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(_guideImage); _guideImage.destroy(true); _guideImage.dis...
来源: Laya_社区 发布时间: 20161216
...arMask(l: TypeAnimatorLayer, promises: Array<any>, task: ILoadTask): void Defined in laya/d3/loaders/AnimationControllerLoader.ts:26 Parameters l: TypeAnimatorLayer promises: Array<any> task: ILoadTask Returns void loadStates loadStates(states: TypeAnimatorState[], promises: Array<any...
来源: Laya3.0_api 发布时间: 20231115
...r.load(this.apePath, Handler.create(this, this.setup)); } private setup(): void { this.createApe(); this.applayFilter(); } private createApe(): void { this.ape = new Sprite(); this.ape.loadImage(this.apePath); var texture: Texture = Laya.loader.getRes(this.apePath); this.ape.x = (Laya.stage.width - ...
来源: Laya_示例 发布时间: 20260303
...ataVector2 实例。 GradientDataVector2 add(key:Number, value:Vector2):void 增加二维向量渐变。 GradientDataVector2 clone():* 克隆。 GradientDataVector2 cloneTo(destObject:*):void 克隆。 GradientDataVector2Property DetailgradientCountpropertygradientCount:int [read-only] ...
来源: laya_api 发布时间: 20170929
...ataVector2 实例。 GradientDataVector2 add(key:Number, value:Vector2):void 增加二维向量渐变。 GradientDataVector2 clone():* 克隆。 GradientDataVector2 cloneTo(destObject:*):void 克隆。 GradientDataVector2Property DetailgradientCountpropertygradientCount:int [read-only] ...
来源: Laya2.0_api 发布时间: 20190513
...xture2D。 DataTexture2D onAsynLoaded(url:String, data:*, params:Array):void[override] private DataTexture2DProtected Methods MethodDefined By detoryResource():void[override] 销毁资源。 DataTexture2D recreateResource():void[override] 重新创建资源,如果异步创建中被强...
来源: laya_api 发布时间: 20170929
...layabmfont.fnt",new Handler(this,onLoaded)); } private function onLoaded():void { init(); } private function init():void { //如果位图字体中,没放空格,最好设置一个空格宽度 mBitmapFont.setSpaceWidth(10); Text.registerBitmapFont(mFontName, mBitmapFont); var txt:Text = new Text()...
来源: Laya2.0_文档 发布时间: 20201114