大约有 715 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0086 秒)
Laya_社区(471) Laya2.0_文档(70) Laya3.0_文档(45) Laya3.0_api(43) Laya_示例(42) Laya2.0_api(29) laya_api(15)
...ayaMonkey.lm", Laya.Handler.create(this, function(mesh) { var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMateri...
来源: Laya2.0_文档 发布时间: 20210715
...推。效果如动图1-6所示。 (动图1-6) 1.3 脚本控制Tab 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将Tab组件拖入到其暴露的属性入口中。需要添加如下的示例代码,实现脚本控制Tab: const { regClass, property } = Laya;...
来源: Laya3.0_文档 发布时间: 20251010
...der: library\temp\zZQHoe\ [2023-06-20 18:19:19.046] [resource_tool] [info] Scene unit: multiplier: 1, scalefactor: 1 [2023-06-20 18:19:19.046] [resource_tool] [info] m scalefactor: 100, multiplier: 1 [2023-06-20 18:19:19.046] [resource_tool] [info] cm scalefactor: 1, multiplier: 1 [2023-06-20 18:19:...
来源: Laya_社区 发布时间: 20230621
...te Skeleton Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY aniMode animationName blendMode cacheAs components customRend...
来源: Laya3.0_api 发布时间: 20231115
...边距设置为合适大小。 (动图1-7) 1.3 脚本控制ComboBox 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将ComboBox拖入到其暴露的属性入口中。需要添加如下的示例代码,实现脚本控制ComboBox: const { regClass, property } =...
来源: Laya3.0_文档 发布时间: 20251010
...以根据按钮组件的文档进行理解。 1.3 脚本控制CheckBox 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将CheckBox组件拖入到其暴露的属性入口中。需要添加如下的示例代码,实现脚本控制CheckBox: const { regClass, propert...
来源: Laya3.0_文档 发布时间: 20251010
...e VideoNode Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode buffered cacheAs components currentSrc currentTime ...
来源: Laya3.0_api 发布时间: 20231115
... BaseCamera right : Vector3[read-only] 获取右向量。 BaseCamera scene : Scene[read-only] 获得所属场景。 Sprite3D sky : Sky获取天空。BaseCamera timer : Timer时间控制器,默认为Laya.timer。Node transform : Transform3D[read-only] 获取精灵变换。 Sprite3D up :...
来源: laya_api 发布时间: 20170929
...t.getChildAt(0).clone(); ele.transform.position=new Laya.Vector3(0, 0, 0); scene.addChild(ele); ... ele.transform.rotate(new Laya.Vector3(10, 0, 0), true); //这里会有效 ele.transform.localRotation=new Laya.Quaternion(0, 0,0,0); //这里也还是有效的 ele.transform.rotate(new Laya.Vector3(30...
来源: Laya_社区 发布时间: 20170323
...要通过代码设定Clip相关的属性,就需要用到脚本了。在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将Clip组件拖入到其暴露的属性入口中。下面给出一个示例代码,实现脚本控制Clip: const { regClass, property } = Laya; ...
来源: Laya3.0_文档 发布时间: 20251010