大约有 151 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
Laya_社区(118) Laya2.0_示例(10) Laya_示例(9) Laya3.0_api(4) laya_api(3) Laya2.0_api(3) Laya3.0_文档(2) Laya2.0_文档(2)
... private var mesh1:MeshSprite3D; private var camera2:Camera; private var x:Number = 0; private var y:Number = 0; public function D3Base_TargetTexture() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); loadUI(); var scene:Scen...
来源: Laya_社区 发布时间: 20170209
...晕 } 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
...如何进行传参和接受参数 在这里监听循环按钮 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
... */ /*override*/ protected measureWidth(): number { return this._bitmap.width; } 附件 : --> 2019-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Lay...
来源: Laya_社区 发布时间: 20191024
... */ 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
...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
...有个BitMask封装 @property({type: BitMask(LogLevel)}) public logLevel: number = LogLevel.All;//日志等级 这样在CocosCreator Editor的Inpector上就可以多选了。
来源: Laya_社区 发布时间: 20251120
... * @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
...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_示例 发布时间: 20260303
...过getbounds获取显示对象图像的实际宽度。</p> */ width: number; /** * <p>显示对象的高度,单位为像素,默认为0。</p> * <p>此高度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请...
来源: Laya_社区 发布时间: 20180827