大约有 240 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
.../脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aNode.addComponent(MyScript); 以上两种方式是等价的,且在纯2D,或2D/3D混合这两种情况中均可正常使用。 3.2 2D能对3D正确遮挡。 输入处理时,2D能对3D正确遮挡。 3.3 新增 MOUSE_DRAG和MOUSE...
来源: Laya3.0_文档 发布时间: 20251010
...sWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numC...
来源: Laya3.0_api 发布时间: 20231115
...__proto=loadingjzaUI.prototype; __proto.createChildren=function(){ View.regComponent("Text",Text); laya.ui.Component.prototype.createChildren.call(this); this.createView(loadingjzaUI.uiView); } loadingjzaUI.uiView={"type":"View","props":{"width":192,"height":269},"compId":1,"child":[{"type":"Image",...
来源: Laya_社区 发布时间: 20170725
...ya.version="1.7.17"; 不会出现这个问题,对比发现引擎 1.7.22 Component 中的 changeSize 方法增加了下面的代码引起的 if (this._layout.enable){ this.resetLayoutX(); this.resetLayoutY(); } 2018-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20181214
...级的属性;另外使用到项目中会报:Uncaught ReferenceError: component is not defined
来源: Laya_社区 发布时间: 20171117
...性。具体实现参考下面的代码与注释。 **创建一个入口类ComponentDemo.as,编写如下代码:** ```java package { import laya.ui.CheckBox; import laya.utils.Handler; import laya.webgl.WebGL; import ui.ComponentDemoUI; public class ComponentDemo { //资源路径 private var skin...
来源: Laya2.0_文档 发布时间: 20210714
...行显示不了 位图字体怎么用UI提供的图片制作 自定义Laya.Component,经代码修改其属性(不是人手修改)之后,保存prefab无变化,重新打开prefab发现改动丢失 问题状态 最新活动: 2025-03-25 18:08 浏览: 3714 关注: 2 人 野山菌 • 2025-03-26...
来源: Laya_社区 发布时间: 20250324
自定义组件报错! 自定义组件 出现问题。 component找不到 按照官方AS3.0的例子一步一步。 是哪里出现问题了 ? 2018-08-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 04年...
来源: Laya_社区 发布时间: 20180828
...I页面实例化之前注册一下组件即可。 注册组件: View.regComponent("ScaleButton",component.ScaleButton) regComponent第一个参数是组件名字,第二个参数是组件路径 2017-05-19 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已...
来源: Laya_社区 发布时间: 20170519
...r __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.call(this); this.createView(testUI.uiView); } testUI.uiView={"type":"Dialog","props":{"width":266,"height":720},"child":[{"type":"Image","props":{"y":0,"x":0,"skin":"poker/bottom_slider.png"...
来源: Laya_社区 发布时间: 20180325