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

大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)

1061. 扇形遮罩画不全画了一个很奇怪的形状但是矩形的就没问题。显示效果如下:版本号1.7.10 [ 78%]

...    }                  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

1062. 超出文本区域的处理&滚动文本(ActionScript-LayaAir基础篇(AS3)-文本) [ 78%]

...至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

1063. 请教下, 自己写了个渐变色shader, 但是效果始终不对。麻烦大神们看看代码哪里有问题 [ 78%]

...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

1064. 内存释放问题 [ 78%]

...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

1065. 切换后台时,引擎如何判断是否停止定时器? [ 77%]

...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

1066. laya.d3.core.Transform3D [ 77%]

...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

1067. 高级应用-渲染纹理 [ 77%]

...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

1068. laya.d3.core.particleShuriKen.ShurikenParticleSystem [ 77%]

...Runtime(conchGraphics3D:*, renderElement:RenderElement, state:RenderState):voidShurikenParticleSystem  addNewParticlesToVertexBuffer():voidShurikenParticleSystem  addParticle(position:Vector3, direction:Vector3, time:Number):BooleanShurikenParticleSystem  clone():* 克隆。 ShurikenParticleSy...

来源: laya_api 发布时间: 20170929

1069. UI-ComboBox [ 77%]

...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

1070. WebSocket发送与接收数据(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 77%]

...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