大约有 1,141 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0088 秒)
Laya_社区(992) Laya3.0_api(66) Laya_示例(33) Laya2.0_示例(32) Laya2.0_文档(6) laya_api(4) Laya3.0_文档(4) Laya2.0_api(4)
...作为 Sprite3D 的子节点,反之亦然。 1.7 图形API 图形 API(Graphics API)是开发者与底层图形硬件之间的桥梁,提供了一套编程接口,用于控制图形的绘制与渲染。通过图形 API,我们可以在程序中绘制图形元素、加载纹理、控制变换...
来源: Laya3.0_文档 发布时间: 20251010
...0; sp.y = 100; var texture = Laya.loader.getRes('player/chara_01.png'); sp.graphics.drawTexture(texture, 0, 0, 96, 96); Laya.stage.addChild(sp); console.log(texture); } 这里大家可能有疑问 为什么路径地址是”player/chara_01.png” 这里我简单解释一下: 首先呢 我们是把...
来源: Laya_社区 发布时间: 20160801
... Laya.stage.addChild(sprite); sprite.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height); // console.log("再次往开放域发请求"); // openDataContext.postMessage({ ...
来源: Laya_社区 发布时间: 20180529
...</span>"; Laya.stage.addChild(html3); var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,300,30,null,"#999999"); Laya.stage.addChild(sp);4、实现超链接 示例如下:public function HtmlDemo() { var div:HTMLDivElement=new HTMLDivElement(); div.innerHTML="<span href='http://ask.layab...
来源: Laya_社区 发布时间: 20161027
...ture = Laya.loader.getRes(cg_url); if(tur)img_cg.graphics.drawImage(tur) }),null,Laya.Loader.IMAGE); 这段代码, 当 cg_url等于“”的时候,底层判断会走到这个接口下面 this.onLoaded(null) load(url, type = null, cache = t...
来源: Laya_社区 发布时间: 20201130
...停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! graphics alpha 问题 unity 粒子特效 laya插件有问题? 请问如何让textinput组件输入密码的时候显示*号? Laya 鼠标Cursor怪异问题,有demo 问题状态 最新活动: 2019-11-22 17:16 浏览: 1282...
来源: Laya_社区 发布时间: 20191122
...Texture = Laya.loader.getRes(m_MapImgUrl); m_mapLayer.graphics.drawTexture(tex); m_mapLayer.width= tex.width; m_mapLayer.height = tex.height; this.on_stage_resize(); } private function on_...
来源: Laya_社区 发布时间: 20170921
...ore.material.BaseMaterial; import laya.d3.core.scene.Scene; import laya.d3.graphics.VertexElementUsage; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.models.CapsuleMesh; import laya.d3.resource.models.Mesh; import laya.d3.resource.models.SphereMesh; import l...
来源: Laya_示例 发布时间: 20260303
....material.TerrainMaterial; import laya.d3.core.scene.Scene; import laya.d3.graphics.VertexElementUsage; import laya.d3.math.Vector2; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.models.CapsuleMesh; import laya.d3.resource.models...
来源: Laya_示例 发布时间: 20260303
...gin extends IEditorEnv.AssetPreview { constructor() { super(); this.sprite.graphics.drawCircle(100, 100, 50, "#ffff00"); this.sprite.size(100, 100); } async setAsset(asset: IEditorEnv.IAssetInfo): Promise<any> { this.renderTarget = this.sprite; } } 显示效果如下: 二十、自定义资...
来源: Laya3.0_文档 发布时间: 20251010