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

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

1451. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 45%]

...new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; })); //测试遮挡剔除 material.cull = 0 box.meshRenderer.material = material;  let res1 = Laya.Sprite3D.instantiate(box); let res2 = Lay...

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

1452. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 45%]

...ultFont = "36px Arial";     Laya.loader.load("data/Questv1_Regular.ttf", Handler.create(this,onLoaded), null, Loader.BUFFER); }   private function onLoaded():void { var arr:ArrayBuffer=Laya.loader.getRes("data/Questv1_Regular.ttf");   if(arr && Browser.window.conch) { Browser.window.conc...

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

1453. Laya1.6.2发布flash版本 [ 45%]

...las() at Function/http://adobe.com/AS3/2006/builtin::call() at laya.utils::Handler/runWith() at laya.events::EventDispatcher/event() at laya.resource::Resource/completeCreate() at laya.webgl.resource::WebGLCharImage/recreateResource() at laya.resource::Resource/activeResource() at laya.resource::Tex...

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

1454. [LayaAirIDE3]咋么实现鼠标点击角色移动 [ 45%]

...rls.push(`${this.ANIMATION_PATH}move${i}.mc`); Laya.loader.load(urls, Laya.Handler.create(this, () => { for (let i = 1; i <= 8; i++) { const clipPath = `${this.ANIMATION_PATH}move${i}.mc`; // 检查资源是否存在 if (Laya.loader.getRes(clipPath)) { this.loadedClips.push(clipPath); } } cons...

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

1455. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 44%]

...件由发布功能生成 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); ....... ``` 在GameUI中使用我们的自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D...

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

1456. 无法触发浏览器文件上传框 [ 44%]

...ng'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let button = new Laya.Button(sk...

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

1457. laya.ui.UIGroup [ 44%]

... : int 表示当前选择的项索引。默认值为-1。 UIGroup  selectHandler : Handler 改变 Group 的选择项时执行的处理器,(默认返回参数: 项索引(index:int))。 UIGroup  selection : ISelect 获取或设置当前选择的项对象。 UIGroup skewX : Number水平倾...

来源: laya_api 发布时间: 20170929

1458. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 44%]

... Laya.loader.create("LayaScene_01/Assets/model/loveScene_jianzhu.lm",Laya.Handler.create(this,this.onCreateComplete)); //预加载完成后回调 private onCreateComplete():void { //创建预加载的模型网格 var mesh:Laya.Mesh = Laya.loader.getRes("LayaScene_01/Assets/model/loveScene_jianzhu.lm...

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

1459. discard property,please use transform's property instead [ 44%]

... "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

1460. 请教下微信小游戏的内存和数据缓存? [ 44%]

...ading.json", type: Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded1)); 我使用这种方法加载图集,加载完就800m,所以就一直在找优化方法,在app端没有这么高 zwy363 • 2018-01-22 10:58 那如果不行,只能不要一次加载...

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