大约有 2,543 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0073 秒)
Laya_社区(2051) Laya3.0_api(129) Laya2.0_文档(109) laya_api(84) Laya2.0_api(82) Laya3.0_文档(37) Laya_示例(36) Laya2.0_示例(15)
... ConchGraphics.prototype.setSkinMesh = function (ib, vb, eleNum, iStart, texture, mat) { var img = texture.source; var _ = conch.bf; if (ib.conch_id === undefined || !ib._upload) { ib.conch_id = CanvasRenderingContext2D.ID++; ib.conchRef = new ArrayBufferRef(); ib.conchRef.id = ib.conch_id; _.needsz...
来源: Laya_社区 发布时间: 20190806
...代码如下: ```javascript (function() { var Sprite = Laya.Sprite; var Texture = Laya.Texture; var Handler = Laya.Handler; var Res; var img; (function() { Laya.init(1136,640); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //资源路径 Res = "res/img/monkey1.png"; //先加载图片资...
来源: Laya2.0_文档 发布时间: 20210715
...ay.Sprite; import laya.utils.Handler; import laya.resource.Texture; public class LayaSample { private var img:Sprite ; private var index:int ; public function LayaSample() { //初始化引擎 ...
来源: Laya_社区 发布时间: 20170918
...,如何操作? 两个view形式页面,互相加载用什么事件? Texture如何转换成Texture2D有人搞过吗 透视相机,2d坐标可以转换成3d坐标吗 spine文件转换成sk文件有什么格式要求? 怎样将html的hls转换成一张3D模型贴图播放 官方的2d案例换...
来源: Laya_社区 发布时间: 20170412
...是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer...
来源: laya_api 发布时间: 20170929
...ghtmapDirection ApplyLightmapEvent Properties lightmapColor lightmapColor: Texture2D Defined in laya/d3/core/scene/Lightmap.ts:9 光照贴图颜色。 lightmapDirection lightmapDirection: Texture2D Defined in laya/d3/core/scene/Lightmap.ts:11 光照贴图方向。 Static ApplyLightmapEvent ApplyLigh...
来源: Laya3.0_api 发布时间: 20231115
...过图片数据计算得到AStart网格 */ private createGridFromAStarMap(texture): any { var textureWidth = texture.width; var textureHeight = texture.height; var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; for (var w = 0; w < textureWidth; w++) { var colaStarArr = aStarA...
来源: Laya3.0_文档 发布时间: 20230303
...法调用顺序错了 正确顺序: var img:Image = new Image(); var t:Texture = Laya.loader.getRes(_resUrl); img.graphics.save();//必须要调用 否则报错 img.graphics.clipRect(100,100,200,200); img.graphics.drawTexture(t); img.graphics.restore(); this.addChild(img); 2019-01-11 0 0 ...
来源: Laya_社区 发布时间: 20190111
...Canvas(this.gridBox.width,this.gridBox.height,0,0); //获取截屏区域的texture this._tex = new Laya.Texture(this._htmlC); this._photo=new Laya.Sprite(); //将截屏的texture进行draw绘制并显示到舞台 this._photo.name="testtt"; this._photo.graphics.drawTexture(this._tex,0,0,this.gridBox....
来源: Laya_社区 发布时间: 20170502
... 猜测:可能是由于js的浮点数精度问题,官方是否改进下texture图集的实现 附件 : --> 测试图集和散图.zip 2019-01-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_Aaron 赞同...
来源: Laya_社区 发布时间: 20190104