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

大约有 154 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0033 秒)

101. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 58%]

...xt.y = 300; //Laya.Tween.from(letterText,{y:100},3000,Laya.Ease.elasticOut,null,i*1000);//注释本行改为将Laya.Tween.from改变为Laya.Tween.to Laya.Tween.to(letterText, { y : 100 }, 3000, Laya.Ease.elasticOut, null, i * 1000); ``` 运行效果如动图3所示 ![动图3.gif](img/3.gif)(动图...

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

102. 2.3.0beta 各种bug [ 58%]

...(this._style = SpriteStyle.create());             if( this._style == null){                 this._style = SpriteStyle.create()             }             return this._style;         }     core.js vivo下getJSON报错兼容 static getJSON(key) {                 ...

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

103. Animation 使用疑问 [ 57%]

...ch((urlPath, index) => {             this.xxxx.loadAtlas(urlPath, null, lv + "_" + actionName + "_" + index);         });   播放时大概 playAniBody(actionName: string, direction: number, completeFun: Function = null): void {          this.aniBody.destroyChildren();        ...

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

104. 鼠标交互-拖动 [ 57%]

...drawRect( dragRegion.x, dragRegion.y, dragRegion.width, dragRegion.height, null, "#FFFFFF", 2); } function onStartDrag(e) { //鼠标按下开始拖拽(设置了拖动区域和超界弹回的滑动效果) ape.startDrag(dragRegion, true, 100); } })();module laya { import Sprite = Laya.Sprite; import S...

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

105. 材质-BlinnPhong-漫反射贴图 [ 57%]

...arth.png"); earth2.meshRender.material = material; Laya.timer.frameLoop(1, null, function():void { earth1.transform.rotate(rotation, false); earth2.transform.rotate(rotation, false); }); } } }

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

106. 鼠标交互-拖动 [ 57%]

...drawRect( dragRegion.x, dragRegion.y, dragRegion.width, dragRegion.height, null, "#FFFFFF", 2); } onStartDrag(e) { //鼠标按下开始拖拽(设置了拖动区域和超界弹回的滑动效果) this.ape.startDrag(dragRegion, true, 100); } } new Interaction_Drag();module laya { import Sprite = Laya....

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

107. 人物行走图动画 [ 57%]

...并创建图集内小图Texture)。      load(url:String, type:String = null, cache:Boolean = true):void 加载资源。 Laya.loader.load(AniConfPath, Handler.create(this, createAnimation), null, Loader.ATLAS);   这里的load只有三个参数,而事实上用到4个,不清楚。。。   ...

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

108. iOS平台,WiFi连网正常,4G下经常失败 [ 56%]

...0 CJPK_iOS[8382:4736822] assetsid old:c1db7e73ac5bc035fa2972c7d90d092e new:null 2018-01-11 10:18:57.961246+0800 CJPK_iOS[8382:4736822] onLayaInitError error=Update DCC get assetsid error 看到对应代码段是: function updateDcc() { return __awaiter(this, void 0, void 0, function* () { cache.se...

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

109. 物体随着鼠标滑动旋转脚本 [ 56%]

...     this.rotaionSpeed = 0.00006;      this.mainCameraAnimation = null;     this.scene = null; } Laya.class(ObjectRotate, "ObjectRotate", Laya.Script);  //这是什么意思有什么作用 ObjectRotate.prototype._initialize = function (owner) {     var _this = this;     ObjectR...

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

110. 区块地图-滚动地图 [ 55%]

... /** * 地图加载完成的回调 */ private function completeHandler(e:*=null):void { Laya.stage.on(Event.RESIZE, this, this.resize); resize(); } //鼠标按下拖动地图 private function mouseDown(e:*=null):void { mLastMouseX = Laya.stage.mouseX; mLastMouseY = Laya.stage.mouseY; Laya.stage.on(E...

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