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

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

1131. 引擎基础概念 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...作为 Sprite3D 的子节点,反之亦然。 1.7 图形API 图形 API(Graphics API)是开发者与底层图形硬件之间的桥梁,提供了一套编程接口,用于控制图形的绘制与渲染。通过图形 API,我们可以在程序中绘制图形元素、加载纹理、控制变换...

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

1132. 【简单跑酷--JS版】---Lv.4 添加玩家 [ 37%]

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

1133. 微信小游戏利用开放域好友关系链做排行榜 [ 36%]

...   Laya.stage.addChild(sprite);                 sprite.graphics.drawTexture(rankTexture,0,0,rankTexture.width,rankTexture.height);                  // console.log("再次往开放域发请求");                 // openDataContext.postMessage({   ...

来源: Laya_社区 发布时间: 20180529

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

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

1135. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 34%]

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

1136. Laya中Button等组件lose skin的问题 [ 30%]

...停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! graphics alpha 问题 unity 粒子特效 laya插件有问题? 请问如何让textinput组件输入密码的时候显示*号? Laya 鼠标Cursor怪异问题,有demo 问题状态 最新活动: 2019-11-22 17:16 浏览: 1282...

来源: Laya_社区 发布时间: 20191122

1137. 动画不显示 [ 29%]

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

1138. 自定义shader-边缘光照shader [ 26%]

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

1139. 自定义shader-地形shader [ 20%]

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

1140. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 13%]

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