大约有 1,122 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0060 秒)
Laya_社区(974) Laya3.0_api(66) Laya_示例(33) Laya2.0_示例(32) Laya2.0_文档(6) Laya2.0_api(4) laya_api(4) Laya3.0_文档(3)
...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
...); 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
...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_示例 发布时间: 20241002
....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