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

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

701. laya animation播放图片集合,切换时会闪烁一下 [ 64%]

...里。 2019-03-25 0 0 分享 微博 QZONE 微信 风信子 赞同来自: private createAnimation(images: Array<string>): Laya.Animation { this.animation = new Laya.Animation(); this.ui.addChild(this.animation); this.animation.loadImages(images); this.animation.interval = 70; this.animation.pla...

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

702. 救命啊,遇到苹果爸爸 Guideline 2.5.2 [ 64%]

...ay not be using this functionality currently, it has the potential to load private frameworks, private methods, and enable future feature changes. This includes any code which passes arbitrary parameters to dynamic methods such as dlopen(), dlsym(), respondsToSelector:, performSelector:, method_exch...

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

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

...mport laya.utils.Stat; import laya.webgl.WebGL; public class LayaAirDemo { private var sp:Sprite ; 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();...

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

704. 文本-复杂的文本样式 [ 63%]

...caleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createText(); } private createText(): void { var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发行商,面向Flash开发者提供HTML5开发技术...

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

705. 分享一个自己做的游戏公告功能,跑马灯效果 [ 63%]

... 动画是否出于播放状态 */ isPlayIng:boolean = false /** 空格 */ private space:string = "<span>                          </span>" constructor() { super() this.width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this....

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

706. [LayaAir3]Laya3.3废弃了filters,如何设置sprite滤镜,添加PostProcess2D,再给Process添加ColorEffect2D也不生效 [ 63%]

...的。 2025-08-21 0 1 分享 微博 QZONE 微信 编号9527 赞同来自: private testFilter(){     let spirit = new Laya.Sprite();     this.displayObject.addChild(spirit);     spirit.x = 360;     spirit.y = 640;     const url = "lang/zh-cn/spine/hero/zhujue_attack/zhujue_attack.skel" ...

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

707. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...ources/res/ui/listskins/5.jpg"); } list.array = data; this._list = list; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } class Item extends Laya.Box { static WID: numb...

来源: Laya3.0_文档 发布时间: 20251010

708. 组件属性的代码使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...ya.Script { @property({ type : Laya.Sprite3D}) public cube: Laya.Sprite3D; private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); onStart() { Laya.timer.frameLoop(1, this, ()=> { this.cube.transform.rotate(this.rotation, false); }); } } 效果如动图1-4所示: (动图1-4) 1.3 3D...

来源: Laya3.0_文档 发布时间: 20251010

709. 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 [ 63%]

...); return image; } </script>2. 在 as 代码中加入如下函数: private static var createTextureCallBack:Function; public static function createTexture(s:Sprite,callback:Function,callbackThis:Object):void{ createTextureCallBack = callback; var htmlCanvas:HTMLCanvas = s.drawToCanvas(512,51...

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

710. List翻页效果 [ 63%]

...ayaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.cha...

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