大约有 699 项符合查询结果, 库内数据总量为 30,810 项。 (搜索耗时: 0.0091 秒)
Laya_社区(463) Laya2.0_文档(70) Laya3.0_api(43) Laya_示例(42) Laya3.0_文档(37) Laya2.0_api(29) laya_api(15)
...script /* ……省略若干代码 */ //创建盒型MeshSprite3D let box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))) as Laya.MeshSprite3D; //创建静态碰撞器 let staticCollider:Laya.PhysicsCollider = box.addComponent(Laya.PhysicsCollider); //设置为触发...
来源: Laya2.0_文档 发布时间: 20210715
...int[static] 精灵级着色器宏定义,光照贴图。RenderableSprite3D scene : *[read-only] 获得所属场景。 Node SHADERDEFINE_COLOR : int[static] MeshSprite3D SHADERDEFINE_GPU_INSTANCE : int[static] MeshSprite3D SHADERDEFINE_RECEIVE_SHADOW : int[static] 精灵级着色器宏定义,接...
来源: Laya2.0_api 发布时间: 20190513
...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
...1时,效果如图1-6所示。 (图1-6) 1.3 脚本控制RadioGroup 在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将RadioGroup拖入到其暴露的属性入口中。需要添加如下的示例代码,实现脚本控制RadioGroup: const { regClass, property...
来源: Laya3.0_文档 发布时间: 20241014
...要通过代码设定Button相关的属性,就需要用到脚本了。在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将Button组件拖入到其暴露的属性入口中。在脚本文件中添加如下示例代码: const { regClass, property } = Laya; @regClass...
来源: Laya3.0_文档 发布时间: 20241014
... HScrollBar Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoHide autoSize bottomMoveLimit changeHandler disableDrag downButton elasticBackTime elasticDistance hitTestPrior isLockedFun mouseThrough name rollRatio scaleBar slider stopMoveLimit tag topMoveLimi...
来源: Laya3.0_api 发布时间: 20231115
... VScrollBar Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoHide autoSize bottomMoveLimit changeHandler disableDrag downButton elasticBackTime elasticDistance hitTestPrior isLockedFun mouseThrough name rollRatio scaleBar slider stopMoveLimit tag topMoveLimi...
来源: Laya3.0_api 发布时间: 20231115
...ColorPicker Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode borderColor bottom cacheAs ce...
来源: Laya3.0_api 发布时间: 20231115
...ProgressBar Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bar bg blendMode bottom cacheAs centerX centerY...
来源: Laya3.0_api 发布时间: 20231115
...der HSlider Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize changeHandler hitTestPrior isVertical mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY bar blendMo...
来源: Laya3.0_api 发布时间: 20231115