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

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

111. 动画混合问题,Avatar动画混合报错. [ 57%]

...晕 }  export default class RoleBase extends Laya.Script3D{ public nGrade:number = 0; public nSpeed:number = 5;  public sprite:Laya.Sprite3D = null;  public animator:Laya.Animator = null;  public Init(){ this.sprite = this.owner as Laya.Sprite3D; this.animator = this.sprite.getComponent(Laya.Ani...

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

112. 循环监听按钮,如何进行传参和接受参数 [ 57%]

...如何进行传参和接受参数 在这里监听循环按钮 for (let i: number = 1; i <= 2; i++) { let e = this.typeBox.getChildByName('btn' + i) as Laya.Image;               console.log(e); e.on(Laya.Event.CLICK, this, this.onBtnClick); }   按钮事件 private onBtnClick(event:L...

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

113. Image设置skin的Bug [ 56%]

...       */         /*override*/ protected measureWidth(): number {         return this._bitmap.width;     } 附件 : --> 2019-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Lay...

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

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

... */ export default class ImageRunTime extends Laya.Image{ public scaleTime:number = 100; constructor() { super(); //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this.scaleSmall); //添加鼠...

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

115. 对象mask的区域改变问题! [ 55%]

...dth,this.img_bar.height,"#000000"); this.setValue(0); } private setValue(v:number):void{ this.__mask.scaleX = v; this.img_bar.mask = null;//第二次设置mask的时候必须给原对象的mask置空,否则无效 this.img_bar.mask = this.__mask; this.label_pro.text = v * 100 + "%"; }对象mask的局...

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

116. [LayaAir3]Camera的cullingMask如何实现的? [ 55%]

...有个BitMask封装 @property({type: BitMask(LogLevel)}) public logLevel: number = LogLevel.All;//日志等级 这样在CocosCreator Editor的Inpector上就可以多选了。

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

117. Panel初始化BUG [ 55%]

... * @param height 高度。      */     private setContentSize(width: number, height: number): void {         var content: Box = this._content;         var rectX = 0;         var rectY = 0;         if (this.vScrollBar) rectY = this.vScrollBar.value;         if (this.hScrollB...

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

118. 缓动-时间线 [ 54%]

...ya.Event; this.timeLine = new TimeLine(); // addLabel(label:String, offset:Number) offset: 标签事件相对于上个动画的偏移时间(单位:毫秒) this.timeLine.addLabel("turnRight", 0).to(this.target, {x:450, y:100, scaleX:0.5, scaleY:0.5}, 2000, null, 0) .addLabel("turnDown", 0).to(this....

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

119. matter中layasprite怎么改变图片大小? [ 54%]

...过getbounds获取显示对象图像的实际宽度。</p> */ width: number; /** * <p>显示对象的高度,单位为像素,默认为0。</p> * <p>此高度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请...

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

120. 请问如何使用laya.d3.core.Layer实现渲染剔除 [ 54%]

...,做显示剔除的功能。 Laya_Aaron • 2018-06-20 15:51 getLayerByNumber(number:int):Layer 引擎已经创建好30个,, 你想用哪个层就 用这个接口取到哪个layer ,1到30的数字。 大夏先生 • 2018-06-20 16:05 @Laya_Aaron:了解了 谢谢

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