大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0058 秒)
Laya_社区(3324) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...赋值。 > 动态修改摄影机视口 ```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
...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; ``` 然后来看下效果。 ; m_talkScroll = new UIScroll(610.0, 250); m_talkScroll.pos(60, 500); this.addChild(m_talkScroll); 2017-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 应该是...
来源: Laya_社区 发布时间: 20171122
...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
... ....... // 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; ``` 然后来看下效果。 (图1)
来源: Laya2.0_文档 发布时间: 20210715
...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
..._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
...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
... "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