大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...建一个 Shader3D 实例。 Shader3D addSubShader(subShader:SubShader):void 添加子着色器。 Shader3D compileShader(name:String, subShaderIndex:int, passIndex:int, publicDefine:int, spriteDefine:int, materialDefine:int):void[static] 编译shader。 Shader3D find(name:String):Shader3D[...
来源: Laya2.0_api 发布时间: 20190513
...ya/assets/txt.fnt", new Laya.Handler(this.onLoaded)); } private onLoaded():void { this.init(); } private init():void { this.mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(this.mFontName, this.mBitmapFont); var txt:Laya.Text = new Laya.Text(); txt.text = "武器坐骑角色"; txt.width =...
来源: Laya_社区 发布时间: 20171028
...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
...mething(); } private drawSomething(): void { this.sp = new Sprite(); Laya.stage.addChild(this.sp); //画矩形 this.sp.graphics.drawRect(20, 20, 100, 50, "#ffff0...
来源: Laya2.0_文档 发布时间: 20210715
...loatKeyframe.ts:45 Returns FloatKeyframe cloneTo cloneTo(destObject: any): void Overrides Keyframe.cloneTo Defined in laya/d3/core/FloatKeyframe.ts:31 克隆数据 inheritdoc override Parameters destObject: any Returns void Globals "laya/d3/core/FloatKeyframe" FloatKeyframe constructor inTangent inW...
来源: Laya3.0_api 发布时间: 20231115
...问有什么问题吗? 代码如下: private function startDemoTest():void { var bmd:BitmapData = new BitmapData(960, 640, false, 0xcccccc); var bmp:Bitmap = new Bitmap(bmd); bmp.width = 960; bmp.height = 640; var sp:Sprite = new Sprite(); sp.addChild(bmp); this.addChildAt(sp, 0); Multitouch.inp...
来源: Laya_社区 发布时间: 20160122
... public function add(child:UIComponent):void { this.cab.addChild(child); } public function getDevices():Array { ...
来源: Laya_社区 发布时间: 20180202
...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
...源。 } private function onLoadComplete():void { trace("资源加载完成!"); var colorPicket:ColorPicker = new ColorPicker();//创建一个 ColorPicker 类的实例对象 colorPicket 。 ...
来源: Laya_社区 发布时间: 20171120
...提交 1 个回复 wudi199553 赞同来自: private onMouseDown(e: Event): void { var touches: Array<any> = e.touches; if (touches && touches.length == 2) { this.preRadian = Math.atan2( touches[0]...
来源: Laya_社区 发布时间: 20171201