大约有 1,451 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)
Laya_社区(932) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(32) laya_api(1) Laya2.0_api(1)
HIERARCHY_LOADED函数不回调 this.sceneP = Laya.stage.addChild(Laya.Scene.load(name)) as Laya.Sprite3D; //this.sceneP.transform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3...
来源: Laya_社区 发布时间: 20180327
...要开发者要自行在失去焦点和恢复的时候,通过侦听失去stage焦点和获得stage焦点进行控制,(在小游戏平台,也要看各小游戏的平台切出规则),浏览器中恢复的参考代码如下: …… //循环播放_sound _sound.play(0); //失去舞台焦点...
来源: Laya3.0_文档 发布时间: 20251010
...is.mTemplete.mRootBone.findBone("头"); let angle:number = Math.atan2(Laya.stage.mouseY - (this.y - bone.transform.y), Laya.stage.mouseX - (this.x - bone.transform.x))*180/Math.PI; angle = Math.floor(angle); bone.rotation =angle; 2018-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180607
...aya.d3.core.scene.Scene3D; import laya.d3.core.Camera; import laya.display.Stage; /** * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联 * 相比脚本方式,继承式页面类,可以...
来源: Laya2.0_文档 发布时间: 20210715
...对应的3D世界的路径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint...
来源: Laya2.0_文档 发布时间: 20210714
...list.itemRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 设置List的垂直滚动 list.scrollType = Laya.ScrollType.Vertical; // 设置List的垂直滚动皮肤,不设置或者""就没有...
来源: Laya3.0_文档 发布时间: 20251010
...ressBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/progress.png", "resource/ui/progress$bar.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComple...
来源: Laya3.0_api 发布时间: 20231115
...不对,可以参考下我下面的例子 package { import laya.display.Stage; import laya.ui.Button; import laya.ui.Dialog; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class DialogCenterClose { private const DIALOG_WIDTH:int = 220; private const DIALOG_HEIGHT:i...
来源: Laya_社区 发布时间: 20170706
...我也不知道哪里引起的,没法子给你们还原呢 主要在Laya.stage.destroyChildren();Laya.stage.addChild(new start())后,在切换横竖品就会报错 182*****369 • 2017-08-29 11:51 @182*****369:可以qq私聊嘛
来源: Laya_社区 发布时间: 20170829
ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null 附Demo。 想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityP...
来源: Laya_社区 发布时间: 20170615