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

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

901. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 82%]

... *owner:此组件所属的3D对象 */ public _load(owner:Laya.Sprite3D):void{ //获取控制器UI this.rocker = Example_roleControl.rocker; this.attack = Example_roleControl.attack; } /*覆写加载组件的3D对象实例化完成后,第一次更新时执行*/ public _start(state:Laya.RenderStat...

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

902. swf版本运行时图片资源不存在报错不清楚的问题 [ 82%]

...个类): laya.flash.FlashImage public function set src(value:String):void 75行后加入代码 tl.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function ceroor(_ev:IOErrorEvent):void { onerror && onerror(); }); laya.ui.Image 167行 protected function setSource(url:String, val...

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

903. laya.d3.shader.SubShader_API3.0 [ 82%]

...turns string key 标记键。 setFlag setFlag(key: string, value: string): void Defined in laya/d3/shader/SubShader.ts:157 添加标记。 Parameters key: string 标记键。 value: string 标记值。 Returns void Static __init__ __init__(): void Defined in laya/d3/shader/SubShader.ts:55 Returns vo...

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

904. 鼠标交互-鼠标交互 [ 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...

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

905. Sprite3D添加组件或脚本(ActionScript-3D基础(AS3)-LayaAir3D之精灵) [ 82%]

...source, Handler.create(this, onComplete)); } private function onComplete():void { //记载场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //加载相机 var camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.8, 1.5...

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

906. 屏幕适配-缩放-No Border [ 82%]

...olor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPos(): void { this.rect.x = Laya.stage.width / 2; this.rect...

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

907. 屏幕适配-缩放-No Scale [ 82%]

...olor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } private updateRectPos(): void { this.rect.x = Laya.stage.width / 2; this.rect...

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

908. laya.physics.Physics [ 82%]

...ods MethodDefined By  Physics()Physics  enable(options:Object = null):void[static] 开启物理世界 options值参考如下: allowSleeping:true, gravity:10, customUpdate:false 自己控制物理更新时机,自己调用Physics.update Physics event(type:String, data:* = null):Boolean 派...

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

909. 进度条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 82%]

...有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.progressBar.value = 0.01; //初始进度值 this.loadText.text = "资源加载中……"; // 测试加载效果 Laya.timer.loop(100, this, this.changeProgress); } //这里仅模拟加载演示效果 changeProgress...

来源: Laya3.0_文档 发布时间: 20251010

910. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 82%]

...有关掉,请问如何处理       //关闭效果     hideEffect(): void {         Laya.Tween.to(this,{y:Laya.stage.height,alpha:0},200,Laya.Ease.linearIn);              }   import { ui } from "./ui/layaMaxUI"; export default class ShopDialog extends ui.ShopDialogUI { constructor(...

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