大约有 2,371 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0060 秒)
Laya_社区(1763) Laya3.0_api(144) Laya2.0_文档(127) Laya2.0_api(103) laya_api(77) Laya3.0_文档(67) Laya_示例(48) Laya2.0_示例(42)
...有些机型出现字距太小,整行字挤压在一起,估计是context 在这些机型获取不了之类的问题。 我现在问题是,如何在laya内设置字距。 2019-02-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20190228
... <p>加载并显示一个图片。相当于加载图片后,设置texture属性</p> * <p>注意:2.0改动:多次调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取消。</p> * @param url ...
来源: Laya_社区 发布时间: 20181010
this.scene.physicsSimulation.rayCastAll 报错 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this.ray); /// Laya.PhysicsSimulation.rayCast(this.ray, this.outHitResult, 30, 0) //拿到...
来源: Laya_社区 发布时间: 20190523
...) | 变量名 | 描述 | | :-------------------- | --------- | | u_MvpMatrix | MVP矩阵 | | u_WorldMat | 世界矩阵 | | u_LightMap | 光照贴图 | | u_LightmapScaleOffset | 光照贴图缩放和偏移 | ### 逐相机(PERIOD_CAMERA) | 变量名 | 描述 | | ------------------ | --------- | | u_Ca...
来源: Laya2.0_文档 发布时间: 20210715
...o.js//创建舞台,默认背景色是黑色的 Laya.init(600, 300); var txt = new Laya.Text(); //设置文本内容 txt.text = "Hello"; //设置文本颜色 txt.color = "#FF0000"; //设置文本字体大小,单位是像素 txt.fontSize = 66; //设置字体描边 txt.stroke = 5;//描边为5像素...
来源: Laya_社区 发布时间: 20171019
同步龙骨插槽动画方案 Laya Ver2.1.1 export class MSketon { private mFactory: Laya.Templet; public mArmature: Laya.Skeleton private _handler: Laya.Handler; constructor(url: string, handler: Laya.Handler, aniMode: number = 0) { ...
来源: Laya_社区 发布时间: 20200618
...Rect(0,0,100,100,"#FF0000"); var mapLayer = this.tiledMap.getLayerByIndex(1); console.info(mapLayer.layerName); this.sp.pos(0,0); mapLayer._childs[0].addChild(this.sp); } } new GameInfo(); 遇到的问题1 把精灵插入地图时 如果代码这样写就会报错 mapLayer.add...
来源: Laya_社区 发布时间: 20171125
...(function (_super) { function Panel1() { Panel1.super(this); //this.poke_a.x=0; } Laya.class(Panel1, "Panel1", _super); var _proto = Panel1.prototype; //======================================= //将指定的牌显示到桌面上 //======================================= _proto.start = function () { ...
来源: Laya_社区 发布时间: 20180130
Laya List给子元素添加事件后,滚动事件被劫持了 let storeTxList = new Laya.List(); storeTxList.itemRender = StoreItem; storeTxList.name = 'storeTxList'; storeTxList.width = 610; storeTxList.pos(0, 0); storeTxList.repeatX = repeatX; storeTxList.repeatY = repeatY; //y轴个数 // ...
来源: Laya_社区 发布时间: 20190711
...相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 这是目前游戏运行的环境不支持webgl模式,一般出现在游戏被app嵌入的时候容易出现,手安卓系统的影响,系统在4.x的不支持webgl 2018-04-10 0 0 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20180408