大约有 715 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0166 秒)
Laya_社区(471) Laya2.0_文档(70) Laya3.0_文档(45) Laya3.0_api(43) Laya_示例(42) Laya2.0_api(29) laya_api(15)
...入,否则不是文本域。默认为false 1.3 脚本控制TextInput 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将TextInput拖入到其暴露的属性入口中。下面给出一个示例代码,实现脚本控制TextInput: const { regClass, property } = L...
来源: Laya3.0_文档 发布时间: 20251010
...样算是吧刚体和模型分开了吗。 Laya.Sprite3D.load("h5/LayaScene_car/Conventional/car.lh",Laya.Handler.create(this,(sp:Laya.Sprite3D)=> { this.car = sp.getChildAt(0).getChildAt(0) as Laya.Sprite3D; this.scene.addChild(this.car); this.rig = (this.car.getComponent(Laya.Rigidbod...
来源: Laya_社区 发布时间: 20190111
...度自适应模式如图1-7所示。 (图1-7) 1.3 脚本控制HBox 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将HBox拖入到其暴露的属性入口中,由于只有一个HBox无法查看效果,所以开发者可以在HBox下添加一些子节点。示...
来源: Laya3.0_文档 发布时间: 20251010
...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
... 三、通过代码使用 在LayaAir3-IDE中新建一个脚本,添加到Scene2D节点后,加入下述代码,实现一个2D精灵光的效果: const { regClass, property } = Laya; @regClass() export class SpriteLight extends Laya.Script { @property({type: Laya.Sprite}) private spriteLight: La...
来源: Laya3.0_文档 发布时间: 20251010
...,可以选择bin目录下的json格式文件进行合并(图集atlas、scene场景、预制体prefab等皆为json格式)。  (图7-1) 合并规则可以设置多个,点击加`(+)`号在新的面板中可以新建一个合并规则,流程如图7-2所示。 ![图7-2...
来源: Laya2.0_文档 发布时间: 20210714
...t Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY clickHandler ...
来源: Laya3.0_api 发布时间: 20231115
...t Index Constructors constructor Properties _extra _graphics _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag toggle drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY clickHandler ...
来源: Laya3.0_api 发布时间: 20231115
...der.png互换,效果如下: (动图1-8) 1.3 脚本控制VSlider 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将VSlider拖入到其暴露的属性入口中。需要添加如下的示例代码,实现脚本控制VSlider: const { regClass, property } = L...
来源: Laya3.0_文档 发布时间: 20251010
...der.png互换,效果如下: (动图1-8) 1.3 脚本控制HSlider 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将HSlider拖入到其暴露的属性入口中。需要添加如下的示例代码,实现脚本控制HSlider: const { regClass, property } = L...
来源: Laya3.0_文档 发布时间: 20251010