• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0163 秒)

801. laya.display.Animation [ 84%]

...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

802. 音频-播放演示 [ 84%]

...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

803. 物理引擎-牛顿摆 [ 84%]

...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

804. Uncaught TypeError: Cannot read property '_tf' of null [ 84%]

...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

805. laya.d3.loaders.AnimationControllerLoader_API3.0 [ 84%]

...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

806. 滤镜-发光滤镜 [ 84%]

...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

807. laya.d3.core.particleShuriKen.module.GradientDataVector2 [ 84%]

...ataVector2 实例。 GradientDataVector2  add(key:Number, value:Vector2):void 增加二维向量渐变。 GradientDataVector2  clone():* 克隆。 GradientDataVector2  cloneTo(destObject:*):void 克隆。 GradientDataVector2Property DetailgradientCountpropertygradientCount:int  [read-only] ...

来源: laya_api 发布时间: 20170929

808. laya.d3.core.particleShuriKen.module.GradientDataVector2 [ 84%]

...ataVector2 实例。 GradientDataVector2  add(key:Number, value:Vector2):void 增加二维向量渐变。 GradientDataVector2  clone():* 克隆。 GradientDataVector2  cloneTo(destObject:*):void 克隆。 GradientDataVector2Property DetailgradientCountpropertygradientCount:int  [read-only] ...

来源: Laya2.0_api 发布时间: 20190513

809. laya.d3.resource.DataTexture2D [ 84%]

...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

810. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 84%]

...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