大约有 19 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
请问下laya.ui.Component下面的anchorX和anchorY的作用,好像显示有问题? 请问下laya.ui.Component下面的anchorX和anchorY的作用,我设置之后没有我想要的效果,请问是不是我理解的问题?具体作用是什么? 2017-04-12 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170412
关于Laya.Component3D脚本生命周期BUG反馈 如果脚本继承了Laya.Component3D,并且重写了_initialize()函数,那么该脚本的_update()、_lateUpdate()函数将不会再执行,必须在_initialize()函数中调用父类的_initialize()函数才行,这应该是bug。 ...
来源: Laya_社区 发布时间: 20170722
box2d动态创建绑定多个关节报错 Node:the component is singleton,can't add the second one. 需求:模拟粘性小球,与任何物体发生碰撞后,在容器内动态创建多个DistanceJoint 与多个不同rigBody做距离关系绑定 代码片段: onTriggerEnter(other: any, se...
来源: Laya_社区 发布时间: 20190609
...Bit(/*laya.Const.ACTIVE_INHIERARCHY*/0x02,true); if (this._components){ for (var i=0,n=this._components.length;i < n;i++){ var comp=this._components[i]; comp._setActive(true); ...
来源: Laya_社区 发布时间: 20190730
...帧更新时执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 | | onLateUpdate | 每帧更新之后执行,尽量不要在这里写大循环逻辑或者使用getComponent方法 | | onDisable | 组件被禁用时执行,比如从节点从舞台移除后 | | onDestroy | ...
来源: Laya2.0_文档 发布时间: 20210715
...custom\ScaleButton.js; 那么ScaleButton.xml->内容: className="component.ScaleButton"。是对的吗 mboat • 2017-09-25 22:14 还有ScaleButton.js,内容:(function(window,document,Laya){ var __un=Laya.un,__uns=Laya.uns,__static=Laya.static,__class=Laya.class,__getset=Laya.gets...
来源: Laya_社区 发布时间: 20170925
...flash.events.MouseEvent; import game.ui.other.ListViewUI; import morn.core.components.Box; import morn.core.handlers.Handler; public class ListView extends ListViewUI { public function ListView() { super(); var arr:Array=[]; for(var i:int=0;i<95;i++) { arr.push({icon:i,label:"Index"+i}); } boxLis...
来源: Laya_社区 发布时间: 20151224
...animation 如何使用 我导出的场景文件里的动画对象下边的components属性是空的 185*****934 • 2018-07-09 15:11 android的机器无法支持么? 185*****934 • 2018-07-09 15:12 android去年的机器 android 6.0的也无法显示 Laya_Aaron • 2018-07-09 15:15 加载正确...
来源: Laya_社区 发布时间: 20180709
...动画状态机有下面几部分构成: 动画状态机组件 Animator Component :是Sprite3D上的一个组件,用来控制动画状态机的接口。 动画状态机文件 Animator Controller :是一个文件,用来执行整个状态机逻辑,驱动动画状态运行,执行状态切...
来源: Laya3.0_文档 发布时间: 20251010
...建一个自定义的组件脚本: import Sprite = Laya.Sprite; import Component = Laya.Component; import Nav2DAgent = Laya.Nav2DAgent; const { regClass, property } = Laya; @regClass() export class TestSprite extends Laya.Script { // 用于显示鼠标点击的位置 @property({ type: Laya.Sprite ...
来源: Laya3.0_文档 发布时间: 20251010