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

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

281. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...= Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya...

来源: Laya3.0_文档 发布时间: 20251010

282. viewportPointToRay产生的射线始终有偏差,是为什么? [ 53%]

...tate); this._phasorSpriter3D = new PhasorSpriter3D(); this._camera = this._owner.getChildByName("Camera") as Camera; } public _postRenderUpdate(state:RenderState):void { super._update(state); this._point.elements[0] = Laya.stage.mouseX; this._point.elements[1] = Laya.stage.mouseY; this._camera.viewp...

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

283. 取色器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...eHandler = new Laya.Handler(this, this.onChangeColor, [colorPicker]); this.owner.addChild(colorPicker); this.onChangeColor(colorPicker); } private onChangeColor(colorPicker: Laya.ColorPicker, e: any = null): void { console.log(colorPicker.selectedColor); } } 运行效果如下动图所示: (动...

来源: Laya3.0_文档 发布时间: 20251010

284. laya.physics.joint.GearJoint [ 52%]

...第2个关节,类型可以是RevoluteJoint或者PrismaticJointGearJoint owner : Node [只读]获取所属Node节点。 Component  ratio : Number两个齿轮角速度比例,默认1GearJointProtected Properties Hide Inherited Protected Properties Show Inherited Protected Properties PropertyDef...

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

285. 加载.lh文件 运行后黑屏 无法显示 [ 52%]

...rue;         this.twoFirst = true; } onStart(){ this._scene = this.owner.parent as Laya.Scene3D;         this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text;         this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCo...

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

286. 挂载物体的3D变换问题 [ 52%]

...riteTransform, avatarWorldMatrix, avatarWorldMatrix); Matrix4x4.multiply((_owner as Sprite3D)._transform.worldMatrix, avatarWorldMatrix, spriteWorldMatrix); 138*****175 • 2017-09-06 11:38 @我觉得挂空节点是可以省的吧?如果可以省,少了一层,也算是优化吧? 183*****755 ...

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

287. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 52%]

...rue;         this.twoFirst = true; } onStart(){ this._scene = this.owner.parent as Laya.Scene3D;         this._text = this._scene.parent.getChildByName("ceshi") as Laya.Text;         this._camera = this._scene.getChildByName("camera") as Laya.Camera; } onUpdate(){ var touchCo...

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

288. [LayaAir3][LayaAir3]3.3.4 同时添加2个sk,无法正常显示 [ 52%]

...templet.buildArmature(0); sk.pos(100 * i, 100 * i); sk.play(0, true); this.owner.addChild(sk); } }); 附件 : --> demo.zip 2025-12-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 layabox 赞同来自: 1704966064...

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

289. [LayaAir3]clickHandler只会执行一次,之后点击不再触发 laya.3.0.9 [ 52%]

...                let btn:Laya.Button = LayaUtil.GetChildByPath(this.owner, "CreatePanel/BtnCreate");                 btn.clickHandler = Laya.Handler.create(this, this.onClickCreate)                 this.drawGrid();     }      onClickCreate()     {         // ()=>...

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

290. Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? [ 52%]

...访问访问私有成员。 示例如下: let animator: Animator = this.owner.getChildAt(0).getComponentByType(Animator) as Animator; let clipNames: string[] = animator["_clipNames"]; 来个点赞吧!!!鄙视官方的不作为! 2018-04-26 3 2 分享 微博 QZONE 微信 w1114367261 赞同...

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