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

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

691. laya.d3.utils.Picker [ 79%]

...ses | Index | Frames No Frames PickerMethods Packagelaya.d3.utilsClasspublic class PickerInheritancePicker Object Picker 类用于创建拾取。 Public Methods  MethodDefined By  Picker() 创建一个 Picker 实例。 Picker  calculateCursorRay(point:Vector2, viewPort:Viewport, projection...

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

692. ts如何调用activity方法 [ 79%]

... webview.addJavascriptInterface(new JavaScriptinterface(this), "android"); public class JavaScriptinterface {  Context mContext;  public JavaScriptinterface(Context c) { mContext= c; }  /** * 与js交互时用到的方法,在js里直接调用的 */ @JavascriptInterface  public void showToast(S...

来源: Laya_社区 发布时间: 20180222

693. 如何才能生成scene配套的代码 [ 79%]

...difications. */ package ui.test { import laya.ui.*; import laya.display.*; public class TestSceneUI extends Scene { public var scoreLbl:Label; public var tipLbll:Label; override protected function createChildren():void { super.createChildren(); loadScene("test/TestScene"); } } } 2018-10-24 添加评...

来源: Laya_社区 发布时间: 20181024

694. laya.display.Animation [ 79%]

...ationProperties | Methods | Events | Constants Packagelaya.displayClasspublic class AnimationInheritanceAnimation AnimationPlayerBase Sprite Node EventDispatcher Object Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控制接口。 本类使用了动画模版...

来源: laya_api 发布时间: 20170929

695. laya.display.Animation [ 78%]

...ationProperties | Methods | Events | Constants Packagelaya.displayClasspublic class AnimationInheritanceAnimation AnimationBase Sprite Node EventDispatcher Object Animation 是Graphics动画类。实现了基于Graphics的动画创建、播放、控制接口。 本类使用了动画模版缓存...

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

696. 粒子-粒子演示1 [ 78%]

...de.part", Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } public onAssetsLoaded(settings: ParticleSetting): void { this.sp = new Particle2D(settings); this.sp.emitter.start(); this.sp.play(); Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.heig...

来源: Laya_示例 发布时间: 20260106

697. 一个简单的跑酷曲面shader分享 [ 78%]

...   export default class CurveBlinnPhong extends Laya.BlinnPhongMaterial { public readonly MAIN_TEX: number = Laya.Shader3D.propertyNameToID("u_MainTex"); public readonly X_OFFSET: number = Laya.Shader3D.propertyNameToID("u_XOffset"); public readonly Y_OFFSET: number = Laya.Shader3D.propertyNameToID...

来源: Laya_社区 发布时间: 20201009

698. 关于TS get/set重写问题 [ 78%]

...写,其作用是为了调用该方法前先做些处理 我父类A有个 public set a($value:number):void{ this._a = $value; } 然后继承父类后子类B重写 public set a($value:number):void {     this.aa();    super.a = $value;  } private aa():void{}   但是super是不能用到set/get...

来源: Laya_社区 发布时间: 20180305

699. laya.ui.TipManager [ 78%]

...es No Frames TipManagerProperties | Methods | Events Packagelaya.uiClasspublic class TipManagerInheritanceTipManager Component Sprite Node EventDispatcher Object鼠标提示管理类Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Nu...

来源: laya_api 发布时间: 20170929

700. 继承Scene没有onEnable [ 78%]

...ya.Node{     constructor(){         super();     }     public onAwake():void{         console.log(1111);     } }   2.继承Sprite 执行后会有onAwake         let t = new tt();         Laya.Scene.root.addChild(t);     } } //激活启动类 new ...

来源: Laya_社区 发布时间: 20190701