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

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

11. Sprite-切换纹理 [ 75%]

...tr); this.ape = new Laya.Sprite(); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.switchTexture(); this.ape.on(Laya.Event.CLICK, this, this.switchTexture); } switchTexture() { let monkey = (this.flag = !this.flag) ? monkey1Res :...

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

12. 缓动-时间线 [ 70%]

...adImage("../../res/apes/monkey2.png"); Laya.stage.addChild(target); target.pivot(55, 72); target.pos(100,100); } function createTimerLine() { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, sc...

来源: Laya_示例 发布时间: 20260106

13. 缓动-时间线 [ 69%]

...d(this.target); this.target.loadImage("res/apes/monkey2.png"); this.target.pivot(55, 72); this.target.pos(100,100); } createTimerLine() { const TimeLine = Laya.TimeLine, Event = Laya.Event; this.timeLine = new TimeLine(); // addLabel(label:String, offset:Number) offset: 标签事件相对于上个...

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

14. 带吗里三个等号是啥意思 [ 66%]

...了! Shake.instance.start(5, 500);这里面的5和500什么意思? ape.pivot(55, 72);啥意思呀 layabox js中 的__super,call()是什么意思 请问这个报错是什么意思 怎样把一个精灵从父节点完全删除 就是读取不到这个精灵的意思 otherBody [首次设置有效]...

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

15. 显示与切换图片(JavaScript-LayaAir基础篇(JS)-位图) [ 59%]

...ction onAssetsLoaded() { ape = new Sprite(); Laya.stage.addChild(ape); ape.pivot(55, 72); ape.pos(200, 200); // 显示默认纹理 switchTexture(); ape.on("click", this, switchTexture); } function switchTexture() { var textureUrl = (flag = !flag) ? texture1 : texture2; // 更换纹理 ape.graphics.c...

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

16. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 56%]

...): void { this.ape = new Sprite(); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.pos(100,50); // 显示默认纹理 this.switchTexture(); this.ape.on("click", this, this.switchTexture); } private switchTexture(): void { var textureUrl: string = (this.flag = !this.flag) ? this.textu...

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

17. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 34%]

...选中组件,修改属性面板的值:`x`值为235,`y`值为100,`pivotX`值为50,`pivotY`值为100,`rotation`值为270。点击播放即可。 **属性解释:** `x`与`y`是组件的位置坐标。 `pivotX`与`pivotY`是组件的轴心点坐标x与y。 `rotation`是组件的旋转角...

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

18. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 34%]

...选中组件,修改属性面板的值:`x`值为235,`y`值为100,`pivotX`值为50,`pivotY`值为100,`rotation`值为270。点击播放即可。 **属性解释:** `x`与`y`是组件的位置坐标。 `pivotX`与`pivotY`是组件的轴心点坐标x与y。 `rotation`是组件的旋转角...

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

19. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 33%]

...选中组件,修改属性面板的值:`x`值为235,`y`值为100,`pivotX`值为50,`pivotY`值为100,`rotation`值为270。点击播放即可。 **属性解释:** `x`与`y`是组件的位置坐标。 `pivotX`与`pivotY`是组件的轴心点坐标x与y。 `rotation`是组件的旋转角...

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

20. laya.ui.UIComponent_API3.0 [ 17%]

...Flags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect skewX skewY stage staticCache texture timer toolTip top transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChi...

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