大约有 169 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
...s._arrCheck[3] = true; } break; } sp_icon.pos(input.width + 10, -8); input.addChild(sp_icon); } /** * 占位符处理 * @param input TextInput */ private _setPlaceHolder(input: Laya.TextInput) { switch (input.name) { case "input_nickname": // input.changeText("限6个中文以内"); input.prompt = "...
来源: Laya_社区 发布时间: 20200410
...omp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代码则没有问题,否则会导致显示异常,其他child消失 parent.child_1.rotation = Math.random() * 180; } } class ChildView extends ui.ChildViewUI{ constructor(){ s...
来源: Laya_社区 发布时间: 20170829
...ene中(一定要加入到场景) Scene3DManager.getInstance().nowScene.addChild( box ); this._ani.linkSprite3DToAvatarNode("RHand",box); linkSprite3DToAvatarNode 这个借口会报错,, throw("Animator:sprite3D must belong to this Animator"); 走到这里了,, 模型资源在附件里...
来源: Laya_社区 发布时间: 20181010
...型。 ```typescript //添加自定义模型 var box:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))) as MeshSprite3D; box.transform.rotate(new Vector3(0, 45, 0), false, false); //创建材质 var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load...
来源: Laya2.0_文档 发布时间: 20210715
....创建盒型MeshSprite3D ```typescript var box: MeshSprite3D = this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(sX, sY, sZ))) as MeshSprite3D; ``` - 2.为精灵添加CannonRigidbody3D组件 ```typescript var rigidBody: CannonRigidbody3D = box.addComponent(CannonRigidbody3D); ``` - 3.设...
来源: Laya2.0_文档 发布时间: 20210714
...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); if(false) { eval(23) } console.log(wx.request) //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transfor...
来源: Laya_社区 发布时间: 20180104
...自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))); //为了更好的表现该自定义shader我们去掉模型旋转,同时给摄影机添加了移动脚本 camera.addComponent(CameraMoveScript); //创建一个...
来源: Laya2.0_文档 发布时间: 20210715
...ne.ls', Laya.Handler.create(null, function(scene1){ let scene = Laya.stage.addChild(scene1); Laya.Sprite3D.load("/1/res/SampleScene.lh", Laya.Handler.create(null, function(sp) { //let obj = sp; let obj = scene.addChild(sp); obj.transform.scale = new Laya.Vector3(4, 4, 4); obj.transform.rotate(new La...
来源: Laya_社区 发布时间: 20200611
...r.ATLAS); } private function onLoaded():void { list=new List(); Laya.stage.addChild(list); list.itemRender=Item; list.repeatX=1; list.repeatY=6; list.x=((Laya.stage.width-Item.WID)/2); list.y=((Laya.stage.height-Item.HEI*list.repeatY)/2); list.vScrollBarSkin="comp/vscroll.png"; list.renderHandler=ne...
来源: Laya_社区 发布时间: 20170626
...自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))); //为了更好的表现该自定义shader我们去掉模型旋转,同时给摄影机添加了移动脚本 camera.addComponent(CameraMoveScript); //创建一个...
来源: Laya2.0_文档 发布时间: 20210715