大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0141 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...reeDimen/skinModel/dude/dude.lh", completeHandler); } public onComplete(): void { var dude1: Laya.Sprite3D = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/dude/dude.lh")) as Laya.Sprite3D; dude1.transform.position = new Laya.Vector3(-0.6, 0, 0); var dude2: Laya.Sprite3D = La...
来源: Laya_示例 发布时间: 20260303
设置frame会使打包VIVO Tween动画抖动闪烁 public DoFlash ():void { Laya.timer.once(700, this, this.FlashTween); } private FlashTween ():void { this.hand.scale(2, 2); this.hand.alpha = 1 Tween.to(this.hand, {scaleX:1, scaleY:1, alpha:1}, 300, null, Laya.Handler.create(this, this.DoFlash));...
来源: Laya_社区 发布时间: 20211109
...ader3D, subShaderIndex: number, passIndex: number, defineNames: string[]): void Defined in laya/d3/shader/ShaderVariantCollection.ts:66 给着色器变种赋值。 Parameters shader: Shader3D 着色器 subShaderIndex: number 子着色器索引 passIndex: number 通道索引 defineNames: string[] 宏...
来源: Laya3.0_api 发布时间: 20231102
...lean): Array<any>; disableLayout: boolean; protected resetLayoutX(): void; protected resetLayoutY(): void; } 类laya.ui.Component 和 接口 laya.ui.IComponent 找不到,应该是2.0里移除了 我尝试继承自 laya.ui.UIComponent,又报一些属性重定义 我猜测是去掉了一个...
来源: Laya_社区 发布时间: 20181027
...iew extends ui.view.MyViewUI { constructor() { super(); } createChildren():void { super.createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", type: Loader.ATLAS }, { url: "view/MyView.json", type: Loader.JSON }, ] Laya.loader.l...
来源: Laya_社区 发布时间: 20180113
...码版是BlendMode.ts 找到 static BlendAdd(gl: WebGLRenderingContext): void { WebGLContext.setBlendFunc(gl, gl.ONE, gl.DST_ALPHA,true); } 替换为: static BlendAdd(gl: WebGLRenderingContext): void { WebGLContext.setBlendFunc(gl, gl.ONE, gl.ONE,true); } 非源码版在laya.core.js里找...
来源: Laya_社区 发布时间: 20200708
...; Laya.stage.bgColor = "#232628"; this.createMap(); } private createMap(): void { this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); } } } new laya.TiledMap_AnimationTile();package { ...
来源: Laya2.0_示例 发布时间: 20260303
...Optional height?: number width: number Returns number[] recover recover(): void Defined in laya/display/cmd/DrawTrianglesCmd.ts:77 回收到对象池 Returns void Globals "laya/display/cmd/DrawTrianglesCmd" DrawTrianglesCmd alpha blendMode color indices matrix texture uvs vertices x y ID getBoundPoi...
来源: Laya3.0_api 发布时间: 20231115
...nMaskDemo() { Laya.init(550, 300); swfPlay(); } private function swfPlay():void { var mc:MovieClip=new MovieClip(); mc.load('reset.swf'); mc.on(Event.LOADED,this,onLoaded,[mc]); Laya.stage.addChild(mc); } private function onLoaded(mc:MovieClip):void { mc.gotoAndStop(0); } } }我测试是没有问题...
来源: Laya_社区 发布时间: 20170116
...ute vec3 a_Normal; uniform mat4 u_MvpMatrix; uniform float u_OutlineWidth; void main() { vec4 position = vec4(a_Position.xyz + a_Normal * u_OutlineWidth, 1.0); gl_Position = u_MvpMatrix * position; } ``` 片元着色器 `outline.fs` 代码如下: ```c++ #ifdef FSHIGHPRECISION precision highp float; ...
来源: Laya2.0_文档 发布时间: 20210715