大约有 389 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0034 秒)
2.4.0 已显示UI上面新增一个Script,不会触发Script的onEnable(demo) view已经添加到舞台上了,这个时候我在代码里面为view再加一个script,这个时候不会触发这个script的onEnable 附件 : --> demo.rar 2020-02-06 添加评论 免费帖 --> 分享 微博 Q...
来源: Laya_社区 发布时间: 20200206
addComponent后成功加载了自定义Script,但是无法执行到script的onEnable,onUpdate等方法 我之前有个老版本的工程,转到新的2.0版本后一切正常,打算用组件的方式尝试一下开发,写了个最简单的隔多少帧自动销毁的Script,只是在onUpda...
来源: Laya_社区 发布时间: 20181122
...。 发现在调用play("动作")后边,Laya.Animator又执行了一次_onEnable方法。 BUG就是这个_onEnable方法产生的,看截图。 对于Laya.Animator执行的顺序是: 1,用户调用 play("动作名") 2,引擎调度 onEnable。这里却执行了play(null) ?显然覆盖...
来源: Laya_社区 发布时间: 20190513
...ckagelaya.physics.jointClasspublic class JointBaseInheritanceJointBase Component ObjectSubclasses DistanceJoint, GearJoint, MotorJoint, MouseJoint, PrismaticJoint, PulleyJoint, RevoluteJoint, RopeJoint, WeldJoint, WheelJoint 关节基类 Public Properties Hide Inherited Public Properties Show Inheri...
来源: Laya2.0_api 发布时间: 20190513
...请: 与内容相关的链接 提交 1 个回复 郭兆奎 赞同来自: onEnable的时机太早了,对象加到场景中就会调用onEnable,这时候图片还没有下载完成 必须要保证图片下载设置完成才能调用drawToTexture,例如 onEnable(): void { const ...
来源: Laya_社区 发布时间: 20240425
...lic/Protected All Inherited Externals Only exported Menu Globals "laya/components/CommonScript" CommonScript Class CommonScript CommonScript 类用于创建公共脚本类。 Hierarchy Component CommonScript Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Acc...
来源: Laya3.0_api 发布时间: 20231102
...sics/joint/JointBase" JointBase Class JointBase 关节基类 Hierarchy Component JointBase DistanceJoint GearJoint MotorJoint MouseJoint PrismaticJoint PulleyJoint RevoluteJoint WeldJoint WheelJoint Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors aw...
来源: Laya3.0_api 发布时间: 20231115
...) 这是我打开xxx.scene 代码执行顺序是 构造器函数-onAwake-onEnable 然后我关闭 Laya.Scene.close(xxx.scene) 再次打开它Laya.Scene.open(xxx.scene) 代码执行顺序仍然是 构造器函数-onAwake-onEnable 也就是说 每次open这个UI 都会重新NEW 也会重新...
来源: Laya_社区 发布时间: 20190104
...lass MeshFilter MeshFilter 类用于创建网格过滤器。 Hierarchy Component MeshFilter Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked destroyed enabled hideFlags id sharedMesh Methods _initialize _setOwner destroy hasHideFlag onAdded on...
来源: Laya3.0_api 发布时间: 20231115
.../Protected All Inherited Externals Only exported Menu Globals "laya/d3/component/LODGroup" LODGroup Class LODGroup SpotLight 类用于构建LOD组件 Hierarchy Component LODGroup Implements IBoundsCell Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors...
来源: Laya3.0_api 发布时间: 20231115