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

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

1391. dialog 遮挡 [ 71%]

...ng 赞同来自: 请参考:private function onSkinLoadComplete(e:*=null):void { createDialog("111",100,100); createDialog("222",200,200); createDialog("333",300,300); createDialog("444",400,400); createDialog("555",500,500); Laya.stage.on(Event.CLICK,this,onClick); } private function onClick():voi...

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

1392. List翻页效果 [ 71%]

...rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.t...

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

1393. laya.d3.graphics.StaticBatchManager_API3.0 [ 71%]

...ne(staticBatchRoot: Sprite3D, renderableSprite3Ds?: RenderableSprite3D[]): void Defined in laya/d3/graphics/StaticBatchManager.ts:38 静态批处理合并,合并后子节点修改Transform属性无效,根节点staticBatchRoot可为null,如果根节点不为null,根节点可移动。 如果rend...

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

1394. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 71%]

... this.on(Laya.Event.MOUSE_OUT,this, this.scaleBig); } private scaleBig():void { //变大还原的缓动效果 Laya.Tween.to(this, {scaleX:1,scaleY:1},this.scaleTime); } private scaleSmall():void { //缩小至0.8的缓动效果 Laya.Tween.to(this,{scaleX:0.8,scaleY:0.8},this.scaleTime); } } ``` 在...

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

1395. 2D方向光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 71%]

...数 private displayText: Laya.Text; // 文本显示当前时间 onAwake(): void { this.lightComp = this.owner.getComponent(Laya.DirectionLight2D); // 初始化文本组件 this.displayText = new Laya.Text(); this.displayText.color = "#ffffff"; this.displayText.font = "Arial"; this.displayText.fontSi...

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

1396. 扩展脚本问题,麻烦帮看下 [ 71%]

...uctor(){ super(); this.frameOnce(2,this,this.onFrame); } private onFrame():void{ console.log("111"+this.getChildByName('btnName')) } } export class testImg extends Laya.Image { constructor(){ super(); this.frameOnce(2,this,this.onFrame); } private onFrame():void{ console.log("122"+super.getChildByNa...

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

1397. laya.d3.core.material.PBRStandardMaterial [ 71%]

...andardMaterial 实例。 PBRStandardMaterial _addReference(count:int = 1):void[override] BaseMaterial _parse(data:*, propertyParams:Object = null, constructParams:Array = null):BaseMaterial[static] BaseMaterial _removeReference(count:int = 1):void[override] BaseMaterial clone():* 克隆。 BaseM...

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

1398. LayaFlash如何使用chrome调试问题? [ 71%]

...r(Event.ADDED_TO_STAGE, init); } private function init(event:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); IFlash.setSize(960, 640); //2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否为横屏模式 IFlash.setBgcolor("#000000"); //背景色 IFlash.showInfo(f...

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

1399. laya.d3.shader.pbr.PBRShaderLib_API3.0 [ 71%]

...laya/d3/shader/pbr/PBRShaderLib.ts:20 emission Methods Static init init(): void Defined in laya/d3/shader/pbr/PBRShaderLib.ts:33 Returns void Globals "laya/d3/shader/pbr/PBRShaderLib" PBRShaderLib DEFINE_ANISOTROPY DEFINE_CLEARCOAT DEFINE_CLEARCOAT_NORMAL DEFINE_EMISSION init Legend Object literal V...

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

1400. Debugtool调用出现跟踪错误 [ 71%]

...,添加敌人时,把role.ts中的laya.init()注释掉后,把init():void改成public init():void之后,启用调试工具无法正常运行,然后动画播放也会自动停止 附件 : --> 2018-07-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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