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

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

1311. HIERARCHY_LOADED函数不回调 [ 78%]

...sform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3, 3); this.sceneP.transform.localPosition = new Vector3(100, 100, 100); }); 2018-03-27 添加评论 免费帖 --> 分享 微...

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

1312. 4、声音无法用loader预加载 ,微信小游戏 [ 78%]

... 小明同学 有空看看我那个错误 wx.getFileSystemManager is not a function;at requestAnimationFrame callback function TypeError: wx.getFileSystemManager is not a function

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

1313. 屏幕适配-缩放-No Border [ 78%]

...; public class SmartScale_Scale_NOBORDER { private var rect:Sprite; public function SmartScale_Scale_NOBORDER() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#232628"; createCantralRect(); } private function createCantralRect():void { rect = new Sprite(); ...

来源: Laya2.0_示例 发布时间: 20260303

1314. 屏幕适配-缩放-No Scale [ 78%]

...e; public class SmartScale_Scale_NOSCALE { private var rect:Sprite; public function SmartScale_Scale_NOSCALE() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; createCantralRect(); } private function createCantralRect():void { rect = new Sprite(); re...

来源: Laya2.0_示例 发布时间: 20260303

1315. ScrollRect设置会引起其他的UI资源无法正在显示 [ 78%]

...rivate var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for...

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

1316. 使用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 [ 78%]

...    <script type="text/javascript">         window.onload = function (){             ipmsg();         }                  function ipmsg() {             var ss = remote_ip_info['country']  + remote_ip_info['province']+ remote_ip_info['city'];    ...

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

1317. UI-ProgressBar [ 78%]

... public class UI_ProgressBar { private var progressBar:ProgressBar; public function UI_ProgressBar() { // 不支持WebGL时自动切换至Canvas //Laya.init(800, 600, WebGL); Laya.init(800, 600); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = S...

来源: Laya2.0_示例 发布时间: 20260303

1318. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 78%]

...aya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function(){ console.log("点击事件") }) // console.log(this.getGold) } } new Main() Laya_Aaron • 2017-12-13 17:09 getGold 哪定义的呢 xdkaka • 2017-12-13 17:17 上面图片截图了,是在UI编辑模式...

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

1319. laya.d3.shader.Shader3D [ 78%]

...e是否开启调试模式。 Constructor DetailShader3D()Constructorpublic function Shader3D(name:String, attributeMap:Object, uniformMap:Object, enableInstancing:Boolean) 创建一个 Shader3D 实例。 Parameters name:String attributeMap:Object uniformMap:Object enableInstancing:BooleanMethod D...

来源: Laya2.0_api 发布时间: 20190513

1320. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 78%]

...aya.Scene3D.load("res/TerrainScene/XunLongShi.ls",Laya.Handler.create(null,function(scene){ //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera = scene.getChildByName("Main Camera"); //清除摄像机的标记 camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; /...

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