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

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

61. 计时器-延迟调用 [ 62%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; demonstrate(); })(); function demonstrate() { for (var i = 0; i < 10; i++) { Laya.timer.callLater(this, onCallLater); } } function onCallLater() { console.log("onCallLater triggered"); var text = new Text()...

来源: Laya_示例 发布时间: 20240930

62. Sprite-缓存为静态图像 [ 62%]

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; Stat.show(); setup(); })(); function setup() { var textBox = new Sprite(); // 随机摆放文本 var text; for (var i = 0; i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() ...

来源: Laya_示例 发布时间: 20240930

63. 陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 [ 61%]

...了? LayaAir3D UnityPlug 1.7.13 导出刚体动画无效 2.0 drawTexture color参数无效 关于同为object层,层级设置无效的问题 lh文件内meshSprite添加阴影属性无效 Laya.MathUtil.getRotation接口说明注释错误 问题状态 最新活动: 2020-11-17 20:10 浏览: 1125 ...

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

64. 计时器-延迟调用 [ 61%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.demonstrate(); } demonstrate() { for (let i = 0; i < 10; i++) { Laya.timer.callLater(this, this.onCallLater); } } onCallLater() { const Text = Laya.Text; console.log("onCallLater triggered...

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

65. Sprite-缓存为静态图像 [ 61%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.Stat.show(); this.cacheText(); } cacheText() { const Sprite = Laya.Sprite, Text = Laya.Text; let textBox = new Sprite(); Laya.stage.addChild(textBox); // 随机摆放文本 let text; for (let i = 0; i ...

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

66. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 61%]

...private var _tex:Texture; private var _htmlCanvas:HTMLCanvas; private var _colorSpr:Sprite; private var _colorTex:Texture; private var _initPixelCount:int; public function Main() { Laya.init(1024, 768, WebGL); Stat.show(0, 0); Laya.stage.bgColor = "#fff"; Laya.loader.load("assets/images/color1.png",...

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

67. ColorPicker组件的皮肤制作标准是? [ 61%]

ColorPicker组件的皮肤制作标准是? 看官网demo提供了ColorPicker组件的demo,但是没找到相关皮肤制作要求,请问这个组件的皮肤有什么要求呢? 2017-11-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

68. laya.utils.PerfHUD [ 60%]

...Intance(comp:Component):* 添加组件实例。 Node  addDataDef(id:int, color:int, name:String, scale:Number):voidPerfHUD addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延...

来源: Laya2.0_api 发布时间: 20190513

69. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 60%]

...n test():void { var text:Text; text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.pos(100, 100); Laya.stage.addChild(text);   text = new Text(); text.fontSize = 30; text.color = "#ff0000"; text.text = "你好"; text.font = "remember"; text.pos(100, 200); Laya....

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

70. 2D物理-复合碰撞器 [ 60%]

...Laya.Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBox(); this.eventListener(); } createBox() { const width = 300, height = 20; const posx = Laya.Browser.width / 2, posy = Laya.Browser.height / 2; let box = this.box = new Laya.Sprite(); box.size(...

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