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

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

741. 如何通过代码控制prefab上面的时间轴动画animation? [ 51%]

...n(Laya.Event.COMPLETE, this, this.onPlayComplete); } attack(callback?:Laya.Handler){ this.ani_show.play(); if (callback) // 甚至可以加上回调 this.ani_show.once(Laya.Event.COMPLETE, this, ()=>{ callback.run(); }); } ... // 外部访问 ... let puzzleSoldier = soldier.getComponent(PuzzleSol...

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

742. Unity插件导出模型 [ 51%]

...下   Laya.Sprite3D.load("res/LayaScene_Model_71008/Model_71008.lh", Laya.Handler.create(null, function(sprite:Laya.Sprite3D):void { scene.addChild(sprite); sprite.transform.localScale = new Laya.Vector3(0.2, 0.2, 0.2); }));   报错信息 Uncaught TypeError: Cannot read property 'transform' of un...

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

743. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 51%]

...sh({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initVie...

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

744. 手机QQ厘米秀GLTF模型使用说明(TypeScript-小游戏适配文档-QQ小游戏) [ 51%]

...与图片资源需要提前加载完成 CmShowTool.LoadCharacter(struct, Handler.create(this, this.onLoadCharacter, [struct])); ``` 3. 加载完成回调 ```typescript /** * @param struct 辅助对象, 记录部件与对应资源路径 * @param sprite 返回厘米秀模型根节点 * @param render...

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

745. 动效模板(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 50%]

...码如下: ```java package { import laya.net.Loader; import laya.utils.Handler; import ui.EffectAnimationDemoUI; public class Main { public function Main() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //加载图集资源,加载成功后添加...

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

746. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 50%]

... ```java Laya.Tween.to(letterText, { y : 300 }, 1000, Laya.Ease.bounceIn, Handler.create(this,changeColor,[letterText]), i * 100); ``` 由于需要增加新的引用,这次贴出全部的示例代码。 TweenDemo.js: ```javascript //初始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 ...

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

747. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 50%]

....Vector3(1, -1, 0)); Laya.Sprite3D.load("h5/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(this,this.ok)); } ok(sp:Laya.Sprite3D):void{ //得到原始Sprite3D this.sp = sp; this.scene3d.addChild(sp); //克隆Sprite3D this.sp2 = Laya.Sprite3D.instantiate(this.sp,null,false); //错开点位置 this.sp2...

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

748. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 50%]

...下代码:** ```java package { import laya.ui.Button; import laya.utils.Handler; import laya.webgl.WebGL; public class ComponentDemo { //按钮资源路径 private var skin:String = "./res/img/btn_test.png"; public function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模...

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

749. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 50%]

...; item.progress = 0; totalSize += item.size; items.push(item); var progressHandler = progress ? Laya.Handler.create(null, loadProgress, [item], false) : null; var completeHandler = (complete || progress) ? Laya.Handler.create(null, loadComplete, [item]) : null; this.load(item.url, completeHandler, p...

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

750. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 50%]

...s" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主的JS. 数据服务器都能正常接收,但是返回...

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