大约有 145 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)
Laya_社区(112) Laya2.0_示例(10) Laya_示例(9) Laya3.0_api(4) laya_api(3) Laya2.0_api(3) Laya3.0_文档(2) Laya2.0_文档(2)
... */ 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_示例 发布时间: 20251130
...,做显示剔除的功能。 Laya_Aaron • 2018-06-20 15:51 getLayerByNumber(number:int):Layer 引擎已经创建好30个,, 你想用哪个层就 用这个接口取到哪个layer ,1到30的数字。 大夏先生 • 2018-06-20 16:05 @Laya_Aaron:了解了 谢谢
来源: Laya_社区 发布时间: 20180510
...过getbounds获取显示对象图像的实际宽度。</p> */ width: number; /** * <p>显示对象的高度,单位为像素,默认为0。</p> * <p>此高度用于鼠标碰撞检测,并不影响显示对象图像大小。需要对显示对象的图像进行缩放,请...
来源: Laya_社区 发布时间: 20180827
...tate1:Laya.Vector3 = new Laya.Vector3(0, 0, 0); private scaleDelta:number = 0; private scaleValue:number = 0; private layaMonkey_clone1:Laya.Sprite3D; private layaMonkey_clone2:Laya.Sprite3D; private layaMonkey_clone3:Laya.Sprite3D; ...
来源: Laya_社区 发布时间: 20190509
...e var m_IsMoving:Boolean = false; private var m_MovStartTime:Number = 0; private var m_MovNeedMs:Number = 0 ; private var m_speed:Number = 150; //每秒移动像素 private var m_curdirection:int = 0 ; private var m_curaniname:S...
来源: Laya_社区 发布时间: 20170921
...m; if (progress instanceof Handler) { let h = progress; progress = (value: number) => h.runWith(value); } // @ts-ignore return Scene._load(url, progress).then(scene => { scene.open(closeOther, param); if (complete instanceof Handler) complete.runWith(scene); else if (complete) complete(scene);...
来源: Laya_社区 发布时间: 20250609