大约有 122 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0036 秒)
...31&id=140 组件的生命周期是: 构造函数→preinitialize (预初始化)→createChildren(创建子对象)→initialize(初始化)→属性计算→callLater→渲染显示。 而实际的1.5.2的版本中,生命周期是: preinitialize > createChildren > initialize > 组...
来源: Laya_社区 发布时间: 20161110
...的资源命名规则,不要用默认的模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh va...
来源: Laya2.0_文档 发布时间: 20210714
...的资源命名规则,不要用默认的模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh va...
来源: Laya2.0_文档 发布时间: 20210715
...yaAir的显示元素,因此舞台尺寸设置为1。百度地图界面的初始化放在init()中。然后是监听设备位置的变化。最后需要注意,函数convertToBaiduCoord()是将获取到的坐标转换至百度地图坐标,由于它是作为convertor.translate()的参数,所以...
来源: Laya2.0_文档 发布时间: 20210715
...yaAir的显示元素,因此舞台尺寸设置为1。百度地图界面的初始化放在init()中。然后是监听设备位置的变化。最后需要注意,函数convertToBaiduCoord()是将获取到的坐标转换至百度地图坐标,由于它是作为convertor.translate()的参数,所以...
来源: Laya2.0_文档 发布时间: 20210715
发布微信后无法触发mouse_up事件 /** 初始化资源加载完成 */ private initF():void{ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseHandler); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.mouseHandler); } private mou...
来源: Laya_社区 发布时间: 20181102
...的资源命名规则,不要用默认的模型名称。 ```typescript //初始化3D场景 var scene:Scene3D = Laya.stage.addChild(Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")) as Scene3D; //获取球型精灵 var sphere:MeshSprite3D = scene.getChildByName("Sphere"...
来源: Laya2.0_文档 发布时间: 20210714
...yaAir的显示元素,因此舞台尺寸设置为1。百度地图界面的初始化放在init()中。然后是监听设备位置的变化。最后需要注意,函数convertToBaiduCoord()是将获取到的坐标转换至百度地图坐标,由于它是作为convertor.translate()的参数,所以...
来源: Laya2.0_文档 发布时间: 20210714
...yaAir的显示元素,因此舞台尺寸设置为1。百度地图界面的初始化放在init()中。然后是监听设备位置的变化。最后需要注意,函数convertToBaiduCoord()是将获取到的坐标转换至百度地图坐标,由于它是作为convertor.translate()的参数,所以...
来源: Laya3.0_文档 发布时间: 20251010
...了;谢谢 大家 public function LayaSample() { //初始化引擎 Laya.init(1136, 640, WebGL); Laya.stage.bgColor = "#ffffff"; Laya.stage.on(Event.CLICK, this, play); } f...
来源: Laya_社区 发布时间: 20170406