大约有 121 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0037 秒)
...dialog添加了控制脚本,并在脚本中的onstart函数中添加this.owner.popup(),在laya调试运行显示居中了。但是到微信里面报this.owner.popup undefined错误 2018-12-12 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, ...
来源: Laya_社区 发布时间: 20181211
...Sprite3D的脚本,直接挂到了Scene节点上,启动时会报“this.owner._scene._addScript is not a function”,请问怎么处理? 2020-11-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 陆仁毅 ...
来源: Laya_社区 发布时间: 20201126
... var ray = new Laya.Ray(vec3,new Laya.Vector3(0,0,1)); (this.owner.scene as Laya.Scene3D).physicsSimulation.rayCast(ray,this.outHitResult); if(!this.outHitResult.succeeded){ return false; } return this.outHitResult.collider } ...
来源: Laya_社区 发布时间: 20190905
... Laya.Physics.I.allowSleeping = false; this.strWorldRoot= this.owner.scene.strWorldRoot; Laya.Physics.I.worldRoot = this.strWorldRoot; } onUpdate(): void { var playerPos=new Laya.Point(this.cameraPlayerOffset.x,this.cameraPlayerOffset.y); v...
来源: Laya_社区 发布时间: 20231123
...or3(0,0,0); } onStart(){ this.scene = this.owner.parent; this.text = this.scene.parent.getChildByName("ceshi"); this.camera = this.scene.getChildByName("camera"); } onUpdate(){ let touchCount = this.scene...
来源: Laya_社区 发布时间: 20190531
...ya.Physics.rayCast(this.ray,this.outHitInfo,5)); //更新角色位置 this.owner.transform.translate(new Laya.Vector3(speedX,0,speedZ),false); //播放行走动画 2018-01-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...
来源: Laya_社区 发布时间: 20180118
...= Laya; @regClass() export class Animation extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法...
来源: Laya3.0_文档 发布时间: 20240910
....0.3 的VideoNode不支持在微信浏览器中播放 let videoNode = this.owner.getChildByName("VideoNode") as Laya.VideoNode; videoNode.source = 'xxx.mp4'; videoNode.play(); // 上面代码在PC端安卓苹果等自带浏览器支持视频播放,但是在微信浏览器无任何显示。 let mat...
来源: Laya_社区 发布时间: 20230825
...此方法只执行一次 */ onAwake() { //得到3D对象 this.obj = this.owner; } onStart() { } /** * 覆写组件更新方法(相当于帧循环) */ onUpdate() { //所属脚本对象旋转更新 this.obj.transform.rotate(this.rotation, false, false) } onDisable() { console.log("组件设置为...
来源: Laya_社区 发布时间: 20200611
...onstructors constructor Properties _bones _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge Accessors awaked bones bounds boundsChange castShadow destroyed distanceForSort enabled hideFlags id lightmapIndex lightmapScaleOffset localBounds material materials ratioIgnor receiv...
来源: Laya3.0_api 发布时间: 20231115