大约有 1,873 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)
Laya_社区(617) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(73) Laya2.0_示例(68)
...n once Constructors constructor new ButtonGamepad(handness: string, index: number): ButtonGamepad Defined in laya/d3/WebXR/core/WebXRGamepad.ts:104 类用于创建Button对象 Parameters handness: string 设备名称 index: number button缩影 Returns ButtonGamepad Properties handness handness: stri...
来源: Laya3.0_api 发布时间: 20231115
...染函数 public customRender(context:Laya.RenderContext,x:number,y:number):void{ if(this.shader._program) { let u_lightTime = gl.getUniformLocation(this.shader._program, "u_lightTime") ...
来源: Laya_社区 发布时间: 20181121
...模拟器运行 都不出这个问题! gameThirdScriptErrorexpected Number(uniform4f);at requestAnimationFrame callback function Error: expected Number(uniform4f) errorReport @ WAGame.js:1 thirdErrorReport @ WAGame.js:1 (anonymous) @ WAGame.js:1 f @ WAGameSubContext.js:1 (anonymous) @ WAGameSub...
来源: Laya_社区 发布时间: 20190621
...解: > 属性 `albedoColor:Vector4`漫反射颜色。 `albedoIntensity:Number` 漫反射强度。 `albedoTexture:BaseTexture` 漫反射贴图。 `enableLighting:Boolean` 是否启用光照。 `normalTexture:BaseTexture` 法线贴图。 `renderMode:int` [write-only] 设置渲染模式。 `shininess...
来源: Laya2.0_文档 发布时间: 20210715
...ort Render = Laya.Render; export class Physics_Cloth { private stageWidth: number = 800; private stageHeight: number = 600; private Matter: any = Browser.window.Matter; private LayaRender: any = Browser.window.LayaRender; private mouseConstraint: any; private engine: any; constructor() { // 不支...
来源: Laya_示例 发布时间: 20260303
...am的接口, interface IExtendLib { // 初始化Steam initializeSteam(): number; // 返回1表示成功,0表示失败 } export const extendLib: IExtendLib = Laya.importNative("steam_demo.dll"); 然后在Scene2D上新建一个组件脚本,当点击按钮时,完成初始化。 import { extendL...
来源: Laya3.0_文档 发布时间: 20251010
...解: > 属性 `albedoColor:Vector4`漫反射颜色。 `albedoIntensity:Number` 漫反射强度。 `albedoTexture:BaseTexture` 漫反射贴图。 `enableLighting:Boolean` 是否启用光照。 `normalTexture:BaseTexture` 法线贴图。 `renderMode:int` [write-only] 设置渲染模式。 `shininess...
来源: Laya2.0_文档 发布时间: 20210714
...ayShaderCompile3DPublic Methods MethodDefined By ShaderCompile3D(name:Number, vs:String, ps:String, attributeMap:Object, uniformMap:Object, includeFiles:*)ShaderCompile3D add(nameID:int, vs:String, ps:String, attributeMap:Object, uniformMap:Object):ShaderCompile3D[static] 添加预编译shad...
来源: laya_api 发布时间: 20170929
...享 微博 QZONE 微信 nazgul 赞同来自: constructor(mapname:string, x:number, y:number){ super(); //显示登陆界面 this.tMap = new Laya.TiledMap() this.tMap.antiCrack = true //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.Ap...
来源: Laya_社区 发布时间: 20170627
...遍,麻烦看一下这个附件 主要就是让进度条等于0 var w: number = 642; var h: number = 12; var g: Laya.Graphics = this._mask.graphics; g.clear(); if (w == 0 || h == 0) return; var points: any[] = []; points.push(0, h); points.push(0, 0); points.push(this._index, 0); points.push(...
来源: Laya_社区 发布时间: 20221117