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

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

891. 我用matter.js渲染一个篮球, 但是不会自动旋转.. 这个怎么设置呢? [ 47%]

...w Laya.Sprite().loadImage("res/basketball.png"); ball_skin.pivot(ball_skin.width / 2, ball_skin.height / 2); this.ball = Matter.Bodies.circle(0, -100, 34, {     layaSprite: ball_skin, // 绑定一个laya的Sprite, 不能用render.sprite     density: 1, // 密度     restitution: 0.85 // 弹性...

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

892. IDE1.7.19.1beta打包apk后后,播放spine动画出现图片缺失 [ 46%]

...' /> <title>XXXXX</title> <meta name='viewport' content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no' /> <meta name="renderer" content="webkit" /> <meta name='apple-mobile-web-app-capable' content='yes' /> <meta name='...

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

893. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 46%]

...体中,没放空格,最好设置一个空格宽度 mBitmapFont.setSpaceWidth(10); Text.registerBitmapFont(mFontName, mBitmapFont); var txt:Text = new Text(); txt.text = "这是测试"; //设置宽度,高度自动匹配 txt.width = 250; //自动换行 txt.wordWrap = true; txt.align = "center"; ...

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

894. laya.d3.core.MeshTerrainSprite3D_API3.0 [ 46%]

...Filter meshRenderer minX minZ numChildren parent scene timer transform url width Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChil...

来源: Laya3.0_api 发布时间: 20231102

895. 将字节数组转为图片 [ 46%]

...le%3A///1c4effc4-4022-4ab5-8feb-e39ff76b7410             trace(sp.width);//0             /**              * 其他调试信息打印:              * [warn]Retry to load: blob:file%3A///1c4effc4-4022-4ab5-8feb-e39ff76b7410                [error]Failed t...

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

896. 请问object层中添加的sprite怎么添加点击事件 [ 46%]

...ower.zOrder = budai.y; flower.autoSize = true; flower.height = 100; flower.width = 100; flower.size(100,100); flower.on(Laya.Event.CLICK,this,function() {    alert("My Name is Bear"); }); mallLayer.addChild(flower); mallLayer._showGridList.push(flower); 附件 : --> hxwlworld.zip 2018-07-22 添...

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

897. Dialog 第一次打开总是出现在窗口右下角,这是为啥,再打开就正常剧中了? [ 46%]

...:"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width":1624,"sceneColor":"#000000","runtime":"script/view/dialogs/SettingDialog.js","height":750}, "nodeParent":-1, "maxID":4, "label":"Dialog", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":2...

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

898. 使用webgl之后toDataUrl返回黑色的图像 [ 46%]

...rite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.height,WebGL); Stat.show(); Laya.stage.bgColor = "#ffcccc"; Laya.stage.on(Event.CLICK,this,onClick); sp= new Sprite(); sp.name='base'; sp.loadImage("logo.png"); Laya.stage.addChild(sp); } private function onCli...

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

899. 粒子在webgl情况和canvas情况存在显著差异,请看图 [ 45%]

...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.URL.basePath += "../../"...

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

900. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 44%]

...text.fontSize=50; text.text="لحسن نهر123"; text.pos(100, 100); text.width = 500; text.height = 500; Laya.stage.addChild(text); }   参考该贴加载字体方式: https://ask.layabox.com/question/332 附件 : --> LayaFontTest.zip 2018-07-05 添加评论 已悬赏10元 --> 分享 微博 QZO...

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