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

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

261. Unlit材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 62%]

.../加载纹理 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/1.png)(图1)

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

262. Unlit材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 62%]

.../加载纹理 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture){ //设置反照率贴图 material2.albedoTexture = texture; })); earth2.meshRenderer.material = material2; ``` ![](img/1.png)(图1)

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

263. new Laya.TiledMap()提示错误:Laya.TiledMap is not a constructor [ 61%]

...ctangle(); this.tMap.createMap("../bin/res/MarioMap1.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { } } new GameMain();运行的时候报错!错误信息如下: 附件 : --> 2019-02-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

264. TrailSprite3D的ALIGNMENT_TRANSFORM_Z模式ALIGNMENT_VIEW模式有什么区别? [ 61%]

...下,最后回到原大小或原位置,应该用什么缓动模式 Laya.Handler.createnew Laya.Handler有啥区别 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? mac 用layaair2.0 ide 的编辑模式下,cpu爆满 atlas目录下.json文件与.atlas的区别 LAYAAIR...

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

265. 分享:Panel下动态修改子容器宽高并刷新显示! [ 61%]

...Button; import laya.ui.Panel; import laya.utils.Browser; import laya.utils.Handler; public class LayaUISample { public function LayaUISample() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height); //ui组件,除了imageclip外,其他皮肤均需要预加载资...

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

266. 导出插件导出模型不能用 [ 61%]

...1/t01.ls", "DoorShelf/shelf.lh", "LayaScene_layaScene/layaScene.lh"], Laya.Handler.create(this, onComplete)); ... var shelf = scene.addChild(Laya.Sprite3D.load("LayaScene_layaScene/layaScene.lh")); shelf.transform.position = new Laya.Vector3(-18.69, 1.1, 43.8);                 但是无法...

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

267. discard property,please use transform's property instead [ 61%]

... "res/plane.lh",             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoop(1, null, function () {             Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion...

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

268. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 61%]

...入口 module laya {     import Loader = Laya.Loader;     import Handler = Laya.Handler;     export class Loader_MultipleType {         private ROBOT_DATA_PATH: string = "res/swf/star.swf"; private ROBOT_DATA_PATHS: string = "res/swf/star.json";         private ROBOT_TEXT...

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

269. 播放一首歌曲指定从一个时间点开始播放 无效。 [ 61%]

...同来自: soundchannel=SoundManager.playMusic(SongsData.getRrlSound(), 1, Handler.create(this, onCompleteHd), SongsData.starttime); 2019-04-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Yangcy 相关问题 两个对象new了一个...

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

270. 图片遮罩大小跟设置不一致 [ 61%]

...= Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL   = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH...

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