• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 987 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0137 秒)

961. laya.ui.Label_API3.0 [ 33%]

...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

962. laya.ui.Tab_API3.0 [ 33%]

...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

963. HTML文本 · LayaAir3.0文档 · LAYABOX [ 33%]

...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

964. laya.ui.Tree_API3.0 [ 33%]

...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

965. laya.d3.physics.Rigidbody3D_API3.0 [ 33%]

...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

966. 富文本:LayaAir下 HtmlDivElement的使用汇总 [ 31%]

...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

967. 2D相机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 31%]

... = 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

968. laya.d3.core.scene.BaseScene [ 31%]

...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...

来源: laya_api 发布时间: 20170422

969. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 30%]

....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

970. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 29%]

....texture = res; // img.skin = url; //ui组件直接设置skin也可以 img.pos(x, y); this.owner.addChild(img); }); } } 1.2 带类型的加载方式 有的时候,网络资源没有后缀名,又或者,图片xxx.png并非是当成Texture使用,需要被定义为TextureCube。所以,这些时...

来源: Laya3.0_文档 发布时间: 20251010