大约有 1,038 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0152 秒)
Laya_社区(609) Laya2.0_文档(86) Laya3.0_api(75) Laya2.0_api(62) laya_api(57) Laya2.0_示例(53) Laya_示例(49) Laya3.0_文档(47)
....getRes("auth/sp_right.png"); this._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...
来源: Laya_社区 发布时间: 20200410
...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds setVar set_anchorX set_anchorY set_bottom set_dataSource...
来源: Laya3.0_api 发布时间: 20231115
...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_bottom set_dataSource set_he...
来源: Laya3.0_api 发布时间: 20231115
...r='#d26ae3'>HTML文本</span>"; htmlDiv.innerHTML = html; htmlDiv.pos(50,200); console.log("文本的实际宽度为"+htmlDiv.contextWidth,"文本的实际高度为"+htmlDiv.contextHeight) Laya.stage.addChild(htmlDiv); 运行效果: 运行输出:文本的实际宽度为158.677734375 文...
来源: Laya3.0_文档 发布时间: 20230303
...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setItemState setSelfBounds set_anchorX set_anchorY set_bottom set_data...
来源: Laya3.0_api 发布时间: 20231115
...linearDamping linearFactor linearVelocity mass orientation overrideGravity position restitution rollingFriction simulation sleepAngularVelocity sleepLinearVelocity totalForce totalTorque Methods _initialize _setOwner applyForce applyForceXYZ applyImpulse applyTorque applyTorqueImpulse clearForces de...
来源: Laya3.0_api 发布时间: 20231115
...lor='#d26ae3'>HTML文本</span>"; htmlDiv.innerHTML=html; htmlDiv.pos(50,200); var txt:String = ""; var tTxt:String; var tHTMLElement:HTMLElement; for(var i:int = 0,n:int = htmlDiv._childs.length;i < n;i++) { tHTMLElement = htmlDiv.getChildAt(i) as HTMLElement; if(tHTMLElement) { tTxt= t...
来源: Laya_社区 发布时间: 20161027
... = new Laya.Area2D(); //设置2D区域节点的位置和大小 this.area2D.pos(100, 100); this.area2D.size(200, 200); this.owner.addChild(this.area2D); //创建2D相机 this.camera2D = this.area2D.addChild(new Laya.Camera2D); //开发者可以根据需求自行设置相机的各项属性,例如:...
来源: Laya3.0_文档 发布时间: 20251010
...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...
来源: laya_api 发布时间: 20170422
....setValue(Math.random() * 6 - 2, 6, Math.random() * 6 - 2); cone.transform.position = this.tmpVector; //为圆锥形3D节点对象创建刚体碰撞器 let _rigidBody = <Laya.Rigidbody3D>(cone.addComponent(Laya.Rigidbody3D)); //创建圆锥形碰撞器形状(使用节点对象的值,保持...
来源: Laya3.0_文档 发布时间: 20251010