大约有 618 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0052 秒)
Laya_社区(259) Laya2.0_api(123) laya_api(96) Laya_示例(56) Laya2.0_示例(44) Laya2.0_文档(26) Laya3.0_文档(8) Laya3.0_api(6)
... Number 实际宽度。TexturePublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By Texture(bitmap:Bitmap = null, uv:Array = null) 创建一个 Texture 实例。 Texture create(source:*, x:Number, y:Number, width:Number, height:Number, offsetX:Number = 0,...
来源: laya_api 发布时间: 20170929
....stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); loadRes(); } function loadRes(){ Laya.URL.rootPath = Laya.URL.basePath = 'https://similac.beats-digital.com/'; //加载素材 //预加载所有资源 var resource = [ { url: "res/atlas/game/game.atlas", type: Laya.Loa...
来源: Laya_社区 发布时间: 20180426
...leMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); scene = Laya.stage.addChild(new Scene()) as Scene; scene.ambientColor = new Vector3(1, 1, 1); var camera:Camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.translate(new Vector3(0, 0.5, 1)); ...
来源: Laya_示例 发布时间: 20241119
...Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.bgColorTweener = new Tween(); this.setup(); } setup() { this.createPhoenixes(); // 动态背景渲染 this.evalBgColor(); Laya.timer.frameLoop(1, this, this.renderBg)...
来源: Laya2.0_示例 发布时间: 20241119
...偏差~ 测试主要是因为: Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; 这个缩放模式引起的,这种模式下有什么特别要注意的地方么,构造Ray的时候~import Camera = Laya.Camera; import PhasorSpriter3D = Laya.PhasorSpriter3D; import Ray = Laya.Ray; import RenderSta...
来源: Laya_社区 发布时间: 20180201
... Number 实际宽度。TexturePublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By Texture(bitmap:Texture2D = null, uv:Array = null, sourceWidth:Number = 0, sourceHeight:Number = 0) 创建一个 Texture 实例。 Texture create(source:Texture2D, x:Number...
来源: Laya2.0_api 发布时间: 20190513
... Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //var resource = [{url: "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", type: Laya3D.HIERARCHY, priority: 1}]; //Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); ...
来源: Laya_社区 发布时间: 20190531
...tage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this._outHitAllInfo = new Array<Laya.RaycastHit>(); //初始化照相机 this.camera = scene.addChild(new Laya.Camera(0, 0.1, 10...
来源: Laya_社区 发布时间: 20180820
...Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.createSprite(); this.drawTrack(); } createSprite() { const Sprite = Laya.Sprite, Event = Laya.Event; const w = 50; const h = 30; this.button...
来源: Laya2.0_示例 发布时间: 20241119
...改进手机耗电。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alignH : String 水平对齐方式。默认值为"left"。 取值范围: "left" :居左对齐; "center" :居中对齐; "right" :居右对齐; Stage alignV...
来源: laya_api 发布时间: 20170929