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

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

691. 材质动画的使用(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 51%]

...Dimen/scene/materialScene/Conventional/layaScene.ls", Handler.create(this, function(scene:Scene3D):void { Laya.stage.addChild(scene); var camera:Camera = scene.getChildByName("Main Camera") as Camera; camera.addComponent(CameraMoveScript); })); ```

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

692. native 源码安卓编译错误,JCFileResManager 中的JCFileRes 没有setOnReadyCB,setOnErrorCB 方法,是不是没上传? [ 51%]

.../../source/conch/JSWrapper/LayaWrap/JSAudio.cpp:199:94: error: no matching function for call to 'laya::JCFileRes::setOnReadyCB(std::__1::__bind<bool (laya::JSAudio::*)(void*, std::__1::weak_ptr<int>), laya::JSAudio*, std::__1::placeholders::__ph<1>&, std::__1::weak_ptr<int>&...

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

693. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 51%]

....loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //实例化Panel组件 var panel = new Laya.Panel(); //给panel添加背景色 panel.graphics.drawRect(0, 0, 100, 100, "#ffcccc"); //给panel设置宽高 panel.size(100, 100); //给panel设置滚动条...

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

694. 关于canvas下资源释放的问题 [ 51%]

...reRes("hall/bg.jpg");              */         public static function clearTextureRes(url:String):void { 2018-04-25 0 0 分享 微博 QZONE 微信 w1114367261 赞同来自: 你是针对Texture清理的吗? 2018-04-25 0 3 分享 微博 QZONE 微信 w1114367261 赞同来自: 直接调...

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

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

...ya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("TimeLine.ani"); //添加到舞台 Laya.stage.addChild(tl); //播放Animation动画 tl.play(); } ``` 代...

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

696. 3D场景环境设置 · LayaAir3.4 · 引擎文档 · LAYABOX [ 51%]

...天空盒材质 Laya.Material.load("sky2.lmat", Laya.Handler.create(null, function(mat: any) { //修改天空盒渲染器的天空盒材质 skyRenderer.material = mat; })); 2.3 IDE中创建天空盒 2.3.1 更改IDE默认的球形天空盒 当我们用IDE场景一个3D场景时,默认是采用SkyPa...

来源: Laya3.0_文档 发布时间: 20251010

697. Texture2D.setPixels会导致图片质量变差了,获取原生的pixels没有进行改动。怎么回事呢? [ 51%]

...mageSource=new Laya.Browser.window.Image(); var thisObj = this; var onload=function (){ var tex=new Laya.Texture2D(imageSource.width,imageSource.height,1,false,true); tex.wrapModeU=1; tex.wrapModeV=1; tex.loadImageSource(imageSource,true); tex._setCreateURL(url); var tex2=new Laya.Texture(tex); tex2...

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

698. Unity插件导出模型 [ 50%]

...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 undefined     at Skin...

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

699. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 50%]

...------ | ---------------------------------------- | | onreadystatechange | function | 一个JavaScript函数对象,当readyState属性改变时会调用它。 | | readyState | unsigned short | 请求的五种状态 | | response | varies | 响应实体的类型由 `responseType 来指定,` 可以...

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

700. timer无法执行 [ 50%]

...ial();   Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(layabox: Laya.Texture2D): void{ ball1mat.albedoTexture = layabox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material = ball1mat; //添加刚体 ball1.addComponent(Laya.PhysicsC...

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