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

大约有 511 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0056 秒)

181. laya.ani.GraphicsAni_API3.0 [ 66%]

...turns void drawCircle drawCircle(x: number, y: number, radius: number, fillColor: any, lineColor?: any, lineWidth?: number): DrawCircleCmd Inherited from Graphics.drawCircle Defined in laya/display/Graphics.ts:544 绘制圆形。 Parameters x: number 圆点X 轴位置。 y: number 圆点Y 轴位置...

来源: Laya3.0_api 发布时间: 20231115

182. PointLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 66%]

...e.addChild(new Laya.PointLight()); //设置点光源颜色 this.pointLight.color = new Laya.Vector3(1.0, 0.5, 0.0); //设置点光源位置 this.pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0); //设置点光源的范围 this.pointLight.range = 3.0; ``` **range** 为设置点光源...

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

183. 有关Laya3D碰撞检测疑问 [ 66%]

...ansform.rotate(new Laya.Vector3(-15, 0, 0), true, false); this.camera.clearColor = null;  //方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new La...

来源: Laya_社区 发布时间: 20180820

184. DirectionLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 66%]

...Child(new Laya.DirectionLight()); //设置灯光颜色 this.directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); this.directionLight.transform.worldMatrix = mat; ``` ​ **setFo...

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

185. DirectionLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 66%]

...ectionLight()) as Laya.DirectionLight; //方向光的颜色 directionLight.color = new Laya.Vector3(1, 1, 1); //设置平行光的方向 var mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` ​ **setForward*...

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

186. [LayaAir 3.0]3.0.7微信小游戏开发环境Spine3.7报错 [ 65%]

...接 提交 2 个回复 dsk4120 赞同来自: laya.spine.js //调试发现colorNum=NaN, solt.color=Color {r: NaN, g: NaN, b: NaN, a: NaN} graphics.drawTriangles(texture.realTexture, 0, 0, mVertices, mUVs, new Uint16Array(triangles), Laya.Matrix.EMPTY, alpha, colorNum, blendMode);spine导出版本3.7....

来源: Laya_社区 发布时间: 20231115

187. 2D物理-复合碰撞器 [ 65%]

...Laya.Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_AUTO; Laya.Laya.stage.bgColor = "#232628"; this.createBox(); this.eventListener(); } createBox() { const width = 300, height = 20; const posx = Laya.Browser.width / 2, posy = Laya.Browser.height / 2; let box = this.box = new Laya.Sprite(); box.size(...

来源: Laya2.0_示例 发布时间: 20250223

188. 动态阴影被切割了?为啥没有显示完成的阴影 [ 65%]

...a.transform.rotate(new Laya.Vector3(-30, 45, 0), true, false); camera.clearColor = null; camera.orthographic = false; //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.direction = new Laya.Vector3(-1, -1...

来源: Laya_社区 发布时间: 20180402

189. 加载.lh文件 运行后黑屏 无法显示 [ 65%]

...d(new Laya.Scene3D()) as Laya.Scene3D;         //this.scene.ambientColor = new Laya.Vector3(1, 1, 1);         camera.transform.translate(new Laya.Vector3(0,0.8,1.5));         camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false);     //  var camera:Laya.Cam...

来源: Laya_社区 发布时间: 20190531

190. 位图字体生效 [ 65%]

...ame,mBitmapFont); let txt = new Laya.Text(); txt.text='手机号 +86'; txt.color='#FFFFFF'; txt.font = mFontName;//===============代码应该没问题 这句不要的话 就能显示原来的样式 加上就不生效了 txt.fontSize=60; txt.name='CEshi' txt.zOrder=2; this.owner.addChild(txt); conso...

来源: Laya_社区 发布时间: 20191108