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

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

3941. 多摄像机窗口的使用(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 44%]

...赋值。 > 动态修改摄影机视口 ```typescript Laya.timer.once(3000,this,function ():void { //获取第一个摄影的视口 var viewport1:Viewport = camera1.normalizedViewport; //修改参数 viewport1.width = 0.2; //重新赋值是视口 camera1.normalizedViewport = viewport1; var viewport2...

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

3942. 如何为灯光添加阴影(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 44%]

...Shadow = true; ....... // A sphere cast/receive shadow. var sphereSprite = this.addPBRSphere(Laya.PrimitiveMesh.createSphere(0.1), new Laya.Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; sphereSprite.meshRenderer.receiveShadow = true; ``` 然后来看下效果。 ![](img/...

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

3943. layacmd安装失败 [ 44%]

...s 1 5907 error Failed at the electron@1.7.9 postinstall script. 5907 error This is probably not a problem with npm. There is likely additional logging output above. 5908 verbose exit [ 1, true ] 附件 : --> 2017-12-06T10_02_53_392Z-debug.zip 2017-12-06 添加评论 免费帖 --> 分享 微博 QZONE...

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

3944. 自定义panel类问题 [ 44%]

...roll); m_talkScroll = new UIScroll(610.0, 250); m_talkScroll.pos(60, 500); this.addChild(m_talkScroll);     2017-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 应该是...

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

3945. webgl模式下对Panel组件旋转时Panel子对象显示错误的BUG! [ 44%]

...ss(); panel.graphics.drawRect(0,0,200,200,"#ffffff"); panel.size(200,200); this.addChild(panel); var panelChild:Laya.Sprite = new Laya.Sprite(); panelChild.graphics.drawCircle(0,0,50,"#ffbb88"); panelChild.pos(100,100); panel.addChild(panelChild); } } new GameMain(); 附件 : --> 2017-08-14 添加...

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

3946. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 44%]

... ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; ``` 然后来看下效果。 ![](img/1.png)(图1)

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

3947. WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header [ 44%]

...ve an example here on how to encode your header based on the payload size (this is an php example) github.com/CycloneCode/WSServer/blob/master/src/WSServer.php – Cyclonecode Jul 7 '15 at 10:26 Here is another example: stackoverflow.com/questions/8125507/… – Cyclonecode Jul 7 '15 at 10...

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

3948. 文本-复杂的文本样式 [ 44%]

..._CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createText(); } private createText(): void { var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发行商,面向Flash开发者提...

来源: Laya_示例 发布时间: 20251223

3949. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 44%]

...rite { public function SwfBinary() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain); loader.conte...

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

3950. 将字节数组转为图片 [ 44%]

... "res/img.byte";             Laya.loader.load(url, Handler.create(this, byteLoadComplete,[url]),null,Loader.BUFFER); private function byteLoadComplete(url:String):void {             var buffer:ArrayBuffer = Laya.loader.getRes(url);             var byte:Byte = new Byte(buff...

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