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

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

891. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 82%]

...kin:String=null) { super(skin); } override protected function initialize():void{ super.initialize(); _proMask = new Sprite(); _proMask.graphics.drawRect(0, 0, _progress.width, _progress.height); _proMask.scaleX = 0; _progress.mask = _proMask; _bar.stateNum = 1; } override protected function createCh...

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

892. 鼠标交互-鼠标交互 [ 82%]

...showall"; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createInteractiveTarget(); this.createLogger(); } private createInteractiveTarget(): void { var rect: Sprite = new Sprite(); rect.graphics.drawRect(0, 0, 200, 200, "#D2691E"); rect.size(200, 200); rect.x = (Laya.s...

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

893. laya.d3.core.particleshuriken.module.GradientDataVector2_API3.0 [ 82%]

...变数量。 Returns number Methods add add(key: number, value: Vector2): void Defined in laya/d3/core/particleShuriKen/module/GradientDataVector2.ts:29 增加二维向量渐变。 Parameters key: number 生命周期,范围为0到1。 value: Vector2 二维向量值。 Returns void clone clone(): a...

来源: Laya3.0_api 发布时间: 20231115

894. laya.d3.component.staticmesh.StaticMeshMergeInfo_API3.0 [ 82%]

...eturns MeshRenderer[] Methods addElement addElement(render: MeshRenderer): void Defined in laya/d3/component/staticmesh/StaticMeshMergeInfo.ts:63 Parameters render: MeshRenderer Returns void destroy destroy(): void Defined in laya/d3/component/staticmesh/StaticMeshMergeInfo.ts:70 Returns void match ...

来源: Laya3.0_api 发布时间: 20231115

895. laya.d3.math.Vector2 [ 82%]

... 实例。 Vector2  clone():* 克隆。 Vector2  cloneTo(destObject:*):void 克隆。 Vector2  scale(a:Vector2, b:Number, out:Vector2):void[static] 缩放二维向量。 Vector2Public Constants ConstantDefined By  ONE : Vector2[static] 一向量,禁止修改Vector2  ZERO : Vector2[static]...

来源: laya_api 发布时间: 20170929

896. laya.physics.CircleCollider [ 82%]

... Public Methods Show Inherited Public Methods MethodDefined By destroy():void 销毁组件 Component onReset():void 重置组件参数到默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用...

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

897. 一个关于laya.display.scene不成熟的小建议 [ 82%]

...法: static load(url: string, complete?: Handler, progress?: Handler): void; static open(url: string, closeOther?: boolean, param?: any, complete?: Handler, progress?: Handler): void; static close(url: string, name?: string): boolean; static closeAll(): void; static setLoadingPage(loadPage: Scene)...

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

898. 屏幕适配-屏幕适配 [ 82%]

...a.stage.on("resize", this, this.onResize); } private onBoyClick(e: Event): void { //点击后小人会放大缩小 var boy: Sprite = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } private onTxtClick(e: Event): void { //点击后切换适配模式 e.stopPropagati...

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

899. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 82%]

..., Laya.Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { this.showBg(); this.createTimerAnimation(); this.showTotalSeconds(); this.createController(); } private showBg(): void { var bg: Image = new Image(this.bgSkin); bg.size(224, 302); bg.pos(Laya.stage.width - bg.width >> ...

来源: Laya2.0_文档 发布时间: 20210714

900. 屏幕适配-屏幕适配 [ 82%]

...a.stage.on("resize", this, this.onResize); } private onBoyClick(e: Event): void { //点击后小人会放大缩小 var boy: Sprite = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } private onTxtClick(e: Event): void { //点击后切换适配模式 e.stopPropagati...

来源: Laya2.0_示例 发布时间: 20260303