大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
... } public function createUI(img:Image):void { this.img = img; maskSp = new Sprite(); maskSp.setSize(spSize); maskSp.pos(0,0); this.img.mask = mask...
来源: Laya_社区 发布时间: 20180404
...至Canvas Laya.init(550, 400, WebGL); setup(); } private function setup():void { var t1:Text = createText(); //设置不进行任何裁剪 t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2:Text= createText(); //设置不显示文本域外的字符像素 t2.overflow = Text.SCROLL; t2.pos(10, 110); v...
来源: Laya2.0_文档 发布时间: 20210715
...r vs = "uniform mat4 u_MvpMatrix; \n" + "attribute vec4 a_Position; \n" + "void main(){ \n " + "gl_Position = u_MvpMatrix * a_Position; \n " + "};"; var ps = "precision mediump float; \n" + "uniform vec4 u_StartColor; \n" + "uniform vec4 u_EndColor; \n" + "void main() { \n" + "gl_FragColor = mix(u_S...
来源: Laya_社区 发布时间: 20180316
...constructor() { } static gameLoading(name: string, onCompleted: Function): void { let uiResArray = [ { url: "res/atlas/common.json", type: Laya.Loader.ATLAS }, { url: "res/atlas/comp.json", type: Laya.Loader.ATLAS }, // 登录的UI和选角的UI { url: "res/atlas/user.json", type: Laya.Loader.ATLAS ...
来源: Laya_社区 发布时间: 20170905
...meLoop(1,this,this.onFrameLoop); } private onFrameLoop():void{ console.log("delta:",Laya.timer.delta); } private onFocus(): void { console.log("onFocus:"); } private onBlur(): void { console.log("on...
来源: Laya_社区 发布时间: 20180724
...tDispatcher lookAt(target:Vector3, up:Vector3, isLocal:Boolean = false):void 观察目标位置。 Transform3D off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher 从 EventDispatcher 对象中删除侦听器。 EventDispatcher offAll(type:String = null):Event...
来源: laya_api 发布时间: 20170929
...h" ], Laya.Handler.create(this, this.onComplete)); } private onComplete(): void { this.setMaterials(this.scene.getChildByName("scene") as Laya.Sprite3D); this.layaPlane.transform.localPosition = new Laya.Vector3(0, 0.5, -1); Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.creat...
来源: Laya_示例 发布时间: 20260303
...Runtime(conchGraphics3D:*, renderElement:RenderElement, state:RenderState):voidShurikenParticleSystem addNewParticlesToVertexBuffer():voidShurikenParticleSystem addParticle(position:Vector3, direction:Vector3, time:Number):BooleanShurikenParticleSystem clone():* 克隆。 ShurikenParticleSy...
来源: laya_api 发布时间: 20170929
...n, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } private createComboBox(skin: String): ComboBox { var comboBox: ComboBox = ne...
来源: Laya_示例 发布时间: 20260303
...OR,this,errorHandler); } private function openHandler(event:Object = null):void { //正确建立连接; } private function receiveHandler(msg:Object = null):void { ///接收到数据触发函数 } private function closeHandler(e:Object= null):void { //关闭事件 } private function errorHandler(e...
来源: Laya2.0_文档 发布时间: 20210715