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

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

1031. UI-Label [ 47%]

...ort Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...

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

1032. laya.d3.core.trail.TrailRenderer [ 47%]

...onViewWorldMatrixpropertyprotected var _projectionViewWorldMatrix:Matrix4x4Constructor DetailTrailRenderer()Constructorpublic function TrailRenderer(owner:TrailSprite3D) Parameters owner:TrailSprite3DMethod Detail_calculateBoundingBox()methodoverride protected function _calculateBoundingBox():void _...

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

1033. 进度条组件 · LayaAir3.0文档 · LAYABOX [ 47%]

...I_ProgressBar extends Laya.Script { private progressBar: Laya.ProgressBar; constructor() { super(); } onAwake(): void { // 加载进度条资源,图片资源来自“引擎API使用示例” Laya.loader.load(["resources/res/ui/progressBar.png", "resources/res/ui/progressBar$bar.png"]).then(() =&gt...

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

1034. Sprite3D-Sprite3D加载 [ 47%]

.../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"));class Sprite3DLoad { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera: Laya.Camera = scene.addChil...

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

1035. laya微信打包问题很多呀,就是加了一些绘图api,就报错 [ 47%]

...t WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.MiniAdpter.init(); Laya.init(740, 400); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.sta...

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

1036. 鼠标交互-鼠标交互 [ 46%]

...、LayaAirIDE让项目开发更高效。let txt; class Interaction_Mouse { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, We...

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

1037. TimeLine.addLabel(label:String, offset:Number):TimeLine 亲测! 方法中第二个参数offset无效 [ 46%]

...有什么关系呢?   demo代码如下// 程序入口 class GameMain{ constructor() { Laya.init(600,400); var sp:Laya.Sprite = new Laya.Sprite(); sp.graphics.drawRect(0,0,50,50,"#ff8822"); Laya.stage.addChild(sp); var delay:number = 5000; var timeLine:Laya.TimeLine = new Laya.TimeLine(); timeLine...

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

1038. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 46%]

...nds ui.DialogPageUI { private tip:Laya.TipManager = new Laya.TipManager(); constructor() { super(); this.popupEffect= new Laya.Handler(this, function(dialog:Dialog):void { dialog.scale(1, 1); Laya.Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 2000, Lay...

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

1039. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 46%]

...? 我就弄了一个测试代码,压根就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { c...

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

1040. 提示资源重复加载 [ 46%]

...ult class Yard extends Laya.Sprite { private swimpoolani:Laya.Animation;  constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.crea...

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