大约有 863 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0075 秒)
Laya_社区(564) Laya2.0_文档(114) Laya3.0_api(79) Laya3.0_文档(72) Laya_示例(31) Laya2.0_api(2) laya_api(1)
...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
...var sZ = Math.random() * 0.75 + 0.25; //创建盒型MeshSprite3D var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(sX, sY, sZ))); //创建刚体碰撞器 var rigidBody = box.addComponent(Laya.Rigidbody3D); //创建盒子形状碰撞器 var boxShape = new Laya.BoxColliderSha...
来源: Laya2.0_文档 发布时间: 20210715
...存并F12导出。如下图所示。  第二步,选中Scene场景,创建一个空类,按下图所示,将该类拖入到场景的runtime属性栏上,然后保存并F12导出。  第三步,打开刚刚创建的类,继承该场景页,并编写位图...
来源: Laya2.0_文档 发布时间: 20210715
...参考网址:https://ldc2.layabox.com/doc/?nav=zh-js-2-2-5 我在一个Scene里面拖入了4个button,分别name为btn1....btn4,都绑定了同一个btn1.js 当点击它们无法获知,我点的是哪个,代码 如下 export default class btn1 extends Laya.Script { constructor(){super();} ...
来源: Laya_社区 发布时间: 20181029
... 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
...t TypeError: Cannot read property 'btCollisionObject' of undefined laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ 自定义...
来源: Laya_社区 发布时间: 20200731
...有没有方法能够获取“鼠标是否处于按下状态”? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 FD 宏编译时 出现 试图访问该方法时失败 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? ...
来源: Laya_社区 发布时间: 20180512
...node是Laya.display对象的基类, 而且在2.0里面已经使用场景Scene替代了view和dialog,如果你比较过创建后的Scene、view和dialog,它们的文件后缀都是scene 在场景的层级面板中,你可以选中任意节点,然后右键点击,在弹出菜单中选创建2D-...
来源: Laya_社区 发布时间: 20190215
...,并赋给了模型。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))); box.transform.rotate(new Vector3(0, 45, 0), false, false); //创建材质 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/laya...
来源: Laya2.0_文档 发布时间: 20210714