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

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

1961. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 47%]

...自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))); //为了更好的表现该自定义shader我们去掉模型旋转,同时给摄影机添加了移动脚本 camera.addComponent(CameraMoveScript); //创建一个...

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

1962. spine动画,微信模拟器正常,真机动画图片颠倒!!!引擎大bug!!! [ 47%]

...肤 hero.showSkinByIndex(0); //播放 hero.play(0, true); this.img_sample.addChild(hero); this.sk_hero = hero; Laya.timer.once(200, this, () => { hero.on(Laya.Event.CLICK, this, this.onHeroClick); let bbox = hero.getSelfBounds(); hero.hitArea = bbox; }); } 附件 : --> skeleton.zip 2018-09-05 添...

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

1963. 在native下 Laya.Browser.window.Blob不存在 [ 47%]

...); var cc = new laya.resource.Texture(data); ss.source = cc; // Laya.stage.addChild(sp);//添加到舞台 } function errorHandler(url) { gbx.log("2222222222222222") } }   ss 是一个image, data 已经下载到了 在native下,怎么画出来 2018-02-01 0 0 分享 微博 QZONE 微信 daibao520 ...

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

1964. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 47%]

...ll, false)); this.scene3d = Loader.getRes(sceneUrl) as Scene3D; Laya.stage.addChild(this.scene3d); 189*****909 • 2020-07-04 10:57 @熊猫大侠:需要释放掉,然后再次载入。 189*****909 • 2020-07-04 10:59 @熊猫大侠:考虑到资源量很大,需要从内存清理掉。不然累计...

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

1965. 如何为灯光添加阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 47%]

...影: ```typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveM...

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

1966. 关于位图字体的valign属性问题 [ 47%]

...lor="#ffffff"; text.text="hello!LayaBox!"; text.font=mFontName; Laya.stage.addChild(text); } } }测试结果: 1、value=top   2、value=middle   3、value=bottome 总结:并未发现你所说的问题,请用最新版本1.5.3进行测试,如果还有问题,提供个demo,我们查下问...

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

1967. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 47%]

...x.selectHandler = new Handler(this, this.onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } private onSelect(cb: ComboBox): void { console.log("选中了: " + cb.selectedLabel); } } } new laya.UI_ComboBox(); ```

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

1968. 在webgl适配方式为showall下图形绘制问题 [ 47%]

...], ["closePath"]], {fillStyle: "#00ffff"}); Laya.stage.addChild(sp1); ymsdandan • 2017-11-27 15:56 你的代码,我这里测试是没有问题的,要不你把版本更新到1.7.12beta试试吧 jweilan • 2017-11-27 15:59 @ymsdandan:你用js测试的吗?我这边是使用...

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

1969. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 47%]

...omplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play) this.play(); } private onError(): void{ console.log("par...

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

1970. 模拟石头下落过程不明抖动 [ 47%]

...se.linearOut,Laya.Handler.create(this,this.removeball,[ball])); Laya.stage.addChild( ball ); } } public removeball( ball:Laya.Sprite ){ Laya.stage.removeChild(ball); // console.log("rmove ball") } public getObj():Laya.Sprite { for( let i:number = 0 ; i < this.balls.length;i++ ){ if( !this.balls[i...

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