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

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

1381. laya.d3.webxr.core.ButtonGamepad_API3.0 [ 63%]

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

1382. 自定义渲染后,customRender里设置uniform值在ui节点下不生效 [ 63%]

...染函数         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

1383. LayaIDE 2.0.2 导出的微信小游戏,安卓真机必定崩溃在 gameThirdScriptError [ 63%]

...模拟器运行 都不出这个问题!   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

1384. BlinnPhong材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 63%]

...解: > 属性 `albedoColor:Vector4`漫反射颜色。 `albedoIntensity:Number` 漫反射强度。 `albedoTexture:BaseTexture` 漫反射贴图。 `enableLighting:Boolean` 是否启用光照。 `normalTexture:BaseTexture` 法线贴图。 `renderMode:int` [write-only] 设置渲染模式。 `shininess...

来源: Laya2.0_文档 发布时间: 20210715

1385. 物理引擎-布 [ 63%]

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

1386. Steam扩展实例 · LayaAir3.4 · 引擎文档 · LAYABOX [ 63%]

...am的接口, interface IExtendLib { // 初始化Steam initializeSteam(): number; // 返回1表示成功,0表示失败 } export const extendLib: IExtendLib = Laya.importNative("steam_demo.dll"); 然后在Scene2D上新建一个组件脚本,当点击按钮时,完成初始化。 import { extendL...

来源: Laya3.0_文档 发布时间: 20251010

1387. BlinnPhong材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 63%]

...解: > 属性 `albedoColor:Vector4`漫反射颜色。 `albedoIntensity:Number` 漫反射强度。 `albedoTexture:BaseTexture` 漫反射贴图。 `enableLighting:Boolean` 是否启用光照。 `normalTexture:BaseTexture` 法线贴图。 `renderMode:int` [write-only] 设置渲染模式。 `shininess...

来源: Laya2.0_文档 发布时间: 20210714

1388. laya.d3.shader.ShaderCompile3D [ 63%]

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

1389. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 63%]

...享 微博 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

1390. 发布微信小游戏,sprite的graphics.drawPoly安卓平台会引起花屏 [ 63%]

...遍,麻烦看一下这个附件 主要就是让进度条等于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