大约有 1,326 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0056 秒)
...EARFLAG_SKY; this.m_sceneCamera.addComponent(CameraMoveScript); this.stage.addChild(this.m_scene); this.m_scene.addChild(this.m_sceneCamera); 在destory的时候 this.stage.removeChild(this.m_scene); this.m_sceneCamera.removeAllComponent(); this.m_scene.destroy(); this.m_scene = null; 只会这个Ca...
来源: Laya_社区 发布时间: 20171012
物体碰撞问题 var box_1 : Laya.MeshSprite3D = this.scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box_1.transform.translate(new Laya.Vector3(0, 5, 0)); var boxRigidBody_1 : Laya.Rigidbody3D = box_1.addComponent(Laya.Rigidbody3D); var boxShape...
来源: Laya_社区 发布时间: 20190602
...= new Laya.Image(); bg.skin = "res/bg.png"; Laya.stage.addChild(bg); })(); 在layaIDE,微信开发者工具模拟器,和iPhoneX真机上的显示效果分别如图: 附件 : --> demo.zip 2018-06-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20180604
...法让他不穿透,比如2d游戏中,我可以让金黄色的人物后addChild()到舞台就行了,这样黄色人物就不会被先addChild()的角色遮挡; 介绍一下如图所示的场景属性设置,摄像机是正交投影,所有人物模型朝向是自己局部坐标中的Z朝...
来源: Laya_社区 发布时间: 20190822
...ge.width, Laya.stage.height, "#000000"); maskArea.setName("maskArea") mask.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 highLightArea = new Sprite(); highLightArea.visible = false; //设置叠加模式 highLightArea.blendMode = "destinati...
来源: Laya_社区 发布时间: 20221010
...e.getChildAt(0).getChildAt(0) as SkinnedMeshSprite3D; // animationNodeTemp.addChild(effect); body.addComponent(SkinAnimations); this.skinAnimation = body.getComponentByType(SkinAnimations) as SkinAnimations; this.skinAnimation._initialize(body); // var tempet:AnimationTemplet = new AnimationTemplet(...
来源: Laya_社区 发布时间: 20170819
...码里: var dialog = new QuestionDialogUI(); Laya.stage.addChild(dialog); dialog.popup(); dialog.btn_question_dialog_next.on(Laya.Event.CLICK, this, onNext); dialog.radioGroup_question.labels = "如果资源未加载,则先加载资源,\n加...
来源: Laya_社区 发布时间: 20180718
... = ani_border.pivotX = 245; ani_border.load("swf/planet/border.swf",true); addChild(ani_border); 2018-05-29 3 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 苍蝇也是鸟 赞同来自: 只要不是在同一时间...
来源: Laya_社区 发布时间: 20180529
...Data,600,"right"); bp.padding = bp1.padding = bp2.padding = -7; Laya.stage.addChild(bp); Laya.stage.addChild(bp1); Laya.stage.addChild(bp2); var t = 1000; Laya.timer.loop(1000,that,function(){ bp.text = t + ""; bp1.text = t + ""; bp2.text = t + ""; t++; }) } )); } } new GameMain(); 运行效果基...
来源: Laya_社区 发布时间: 20161014
...raphics.drawTexture(imgTextTure,0,0); avatarContainer.addChild(imgSprite); var mask = new Sprite(); mask.graphics.drawCircle(50,50,50,"#00ffff") imgSprite.mask = mask; var ci...
来源: Laya_社区 发布时间: 20170209