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

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

121. laya.d3.core.particleShuriKen.ShurikenParticleMaterial [ 83%]

...Texture:BaseTexture 获取漫反射贴图。 Implementation     public function get diffuseTexture():BaseTexture    public function set diffuseTexture(value:BaseTexture):voidrenderModeproperty renderMode:int  [write-only] 设置渲染模式。 Implementation     public function set re...

来源: laya_api 发布时间: 20170929

122. 角色碰撞器添加复合型碰撞形状,报错Qt[a[((a[(t >> 2)] + 8) >> 2)]] is not a function [ 83%]

...碰撞形状,报错Qt[a[((a[(t >> 2)] + 8) >> 2)]] is not a function        <<<<<<<<报错: //飞机 let plane = scene.getChildByName("plane") as Laya.MeshSprite3D; let character: Laya.CharacterController = plane.addComponent(Laya.CharacterController);  l...

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

123. 【laya2.0】请问drawToCanvas方法改了吗? [ 83%]

..._work.drawToCanvas(575, 1023, 0, 0); htmlCanvas.toBase64("image/png", 0.9, function(base64){ //trace(base64); if (!testTf){ __JS__('setWork(base64)'); } }); 2018-10-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ohkei as3、as2、h5 ...

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

124. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 83%]

...ad("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.lo...

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

125. JSONP跨域读取数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 83%]

... ```javascript var http = require("http"); var sever = http.createServer(function(req,res){ res.end("LayaSample.onComplete()"); }); sever.listen(9090) ``` ```javascript res.end("LayaSample.onComplete()"); ``` 这句话的意思是服务器回传给客户端LayaSample.onComplete()并且执行这个...

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

126. 调用动画结束on方法,报错this.zombieAnimator.on is not a function [ 83%]

调用动画结束on方法,报错this.zombieAnimator.on is not a function 创建官方示例3D Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void { scene.addChild(zombie); this.zombieAnimator = (zombie.getChildAt(0) as Lay...

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

127. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 83%]

...JS语言开发却可以加载 按照 技术文档里的事例: public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr....

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

128. 请问laya里如何解析json,似乎和AS3的不太一样。 [ 83%]

...接 提交 2 个回复 cuixueying 赞同来自: SONIC3D 、sevennqi public function BBB() { Laya.init(550,400); Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { var json:JSON=Laya.loader.getRes("res/atlas/comp.json"); }JSON...

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

129. unity导出的3D动画模型,导入 laya环境报错: node._setParent is not a function [ 83%]

...出的3D动画模型,导入 laya环境报错: node._setParent is not a function var role3D: Laya.Sprite3D = Laya.loader.getRes("res/lk4.lh") as Laya.Sprite3D; //加载到场景 scene.addChild(role3D);  //此处报错 var ani = role3D.getComponent(Laya.Animator) as Laya.Animator; //播放攻击...

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

130. 点击list的时候触发的e.target永远是被点击的item? [ 83%]

...内容相关的链接 提交 1 个回复 cuixueying 赞同来自: public function TestView() { var arr:Array=; for(var i:int=0;i<10;i++) { arr.push({my_clip:i}); } my_list.array=arr; my_list.renderHandler=new Handler(this,onRender); } private function onRender(cell:Box,index:int):void { // TODO A...

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