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

大约有 1,122 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0060 秒)

1111. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 39%]

...re = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("test/test.png"); var sp:Sprite = new Sprite(); sp....

来源: Laya2.0_文档 发布时间: 20210714

1112. 滤镜-颜色滤镜 [ 37%]

...); Laya.stage.addChild(ape); apeTexture = Laya.loader.getRes(apePath); ape.graphics.drawTexture(apeTexture); return ape; } } new Filters_Color();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import ColorFilter = Laya.ColorFilter; import Texture = Laya.Texture; import Browser ...

来源: Laya2.0_示例 发布时间: 20241002

1113. 【简单跑酷--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

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

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

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

1115. 富文本: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

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

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

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

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

1118. 动画不显示 [ 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

1119. 自定义shader-边缘光照shader [ 25%]

...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_示例 发布时间: 20241002

1120. 自定义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_示例 发布时间: 20241002