大约有 2,728 项符合查询结果, 库内数据总量为 30,782 项。 (搜索耗时: 0.0069 秒)
Laya_社区(1131) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya2.0_示例(109) Laya3.0_文档(87)
...skins, Handler.create(this, this.onSkinLoaded)); } private onSkinLoaded(): void { var tabA: Tab = this.createTab(this.skins[0]); tabA.pos(40, 120); tabA.labelColors = "#000000,#d3d3d3,#333333"; var tabB: Tab = this.createTab(this.skins[1]); tabB.pos(40, 220); tabB.labelColors = "#FFFFFF,#8FB299,#FFF...
来源: Laya2.0_示例 发布时间: 20241120
...], Handler.create(this, this.onAssetsLoaded)); } private onAssetsLoaded(): void { this.ape = new Sprite(); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); // 显示默认纹理 this.switchTexture(); this.ape.on("click", this, this.swi...
来源: Laya2.0_示例 发布时间: 20241120
...SpineTemplet; skeleton: Laya.SpineSkeleton; index = 0; private startFun(): void { //创建动画模板 this.templet = new Laya.SpineTemplet(); this.templet.loadAni("spine/10101001.json"); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onE...
来源: Laya_社区 发布时间: 20210813
...ExtendTerrainMaterial()ExtendTerrainMaterial _addReference(count:int = 1):void[override] BaseMaterial _parse(data:*, propertyParams:Object = null, constructParams:Array = null):BaseMaterial[static] BaseMaterial _removeReference(count:int = 1):void[override] BaseMaterial clone():* 克隆。 BaseM...
来源: Laya2.0_api 发布时间: 20190513
...; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat = mat3(u_WorldMat); v_Normal = worldMat * a_Normal; gl_Position.xy += v_Normal.xy * 0.04; }` var outline_ps = ` #ifdef FSHIGHPRECISION precision highp float;...
来源: Laya_社区 发布时间: 20180925
...proArr,Handler.create(this,onProLoaded)); } private function onProLoaded():void { // 将进度条显示到舞台 showProgress(); //开始预加载游戏资源 var ape1:Object={url:"apes/monkey0.png",type:Loader.IMAGE}; var ape2:Object={url:"apes/monkey1.png",type:Loader.IMAGE}; var ape3:Object={url:...
来源: Laya_社区 发布时间: 20160509
...ndlers[Package.TYPE_KICK] = this.onKick; } public init(params,cb:Function):void{ console.log("init",params); this.initCallback = cb; var host = params.host; var port = params.port; var uid = params.session_id; var user_name = params.user_name; // //var url = 'ws://' + host; //if(port) { // url += ':...
来源: Laya_社区 发布时间: 20180119
...x[static] 从对象池中创建一个 Matrix 对象。 Matrix destroy():void 销毁此对象。 Matrix getScaleX():Number 获取 X 轴缩放值。 Matrix getScaleY():Number 获取 Y 轴缩放值。 Matrix identity():Matrix 将本矩阵设置为单位矩阵。 Matrix invert():Matrix ...
来源: laya_api 发布时间: 20170929
...iner.on(Event.MOUSE_UP, this, upHandler); } private function moveHandler():void { interactionArea.graphics.drawCircle(Laya.stage.mouseX, Laya.stage.mouseY, 30, "#ff0000"); } private function upHandler():void { trace("KouTu.upHandler()"); // box.stopDrag(); gameContainer.off(Event.MOUSE_MOVE, this, m...
来源: Laya_社区 发布时间: 20170315
...a.HitResult=new Laya.HitResult() physics:Laya.PhysicsSimulation; onAwake():void{ this.camera = this.owner.getChildByName("Main Camera") as Laya.Camera; let scene: Laya.Scene3D = this.owner.scene as Laya.Scene3D; this.physics=scene.physicsSimulation; console.log("相机位置",(this.owner.ge...
来源: Laya_社区 发布时间: 20190621