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

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

441. 报错:找不到基类,按照laya社区的解答做了,但是导致了另外一个类和接口出现一样的错 [ 61%]

...;             txt.text = "HelloLayaBox";             txt.color = "#ff0000";             txt.fontSize = 66;             txt.bold = true;                          txt.stroke = 5;//字体描边             txt.strokeColor = "#ffffff";    ...

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

442. laya.d3.shader.Shader3D_API3.0 [ 61%]

...IAL PERIOD_SCENE PERIOD_SPRITE RENDER_STATE_BLEND RENDER_STATE_BLEND_CONST_COLOR RENDER_STATE_BLEND_DST RENDER_STATE_BLEND_DST_ALPHA RENDER_STATE_BLEND_DST_RGB RENDER_STATE_BLEND_EQUATION RENDER_STATE_BLEND_EQUATION_ALPHA RENDER_STATE_BLEND_EQUATION_RGB RENDER_STATE_BLEND_SRC RENDER_STATE_BLEND_SRC_...

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

443. 材质-BlinnPhong-反射贴图 [ 61%]

...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox1/skyCube.ltc"); var skyBox = new Laya.SkyBox(); skyBox.textureCube = textureCube; camera.sky = skyBox; var teapot1...

来源: Laya_示例 发布时间: 20251209

444. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 61%]

...式 text:"请修改掉默认的配置", //需要绘制的文本 color:"#000000", //文字的颜色 backgroundColor:"#ffffff", //背景颜色 }; //将传入的配置覆盖掉默认配置 if(!!options && typeof options === "object"){ for(var i in options...

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

445. 加载-销毁Texture使用的图片资源 [ 61%]

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.init(); //显示性能统计信息 Stat.show(); } /** * 初始化场景 */ GameMain.prototype.init = function () { //创建背景 this.spBg = Sprite.fromImage(this.PathBg); Laya.stage.addChild(this.spB...

来源: Laya_示例 发布时间: 20251209

446. 材质-BlinnPhong-高光贴图 [ 61%]

...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var completeHandler = Laya.Handler.create(this, onComplete); Laya.loader.create("../../res/threeDimen/skinModel/dude/dude.lh", completeHandler); function onComplete() { var dude1 = this.scen...

来源: Laya_示例 发布时间: 20251209

447. 用raycast选取实体,hitresult始终是false [ 60%]

...Laya.PixelLineSprite3D; lineSprite.addLine(ray.origin, ray.direction, Laya.Color.BLUE, Laya.Color.RED); this.lineSprite.addChild(lineSprite); if (outHitResult.succeeded) { //删除碰撞到的物体 // this.text.text = "碰撞到了" + outHitResult.collider.owner.name; console.log("碰撞到物体...

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

448. laya.utils.PerfHUD [ 60%]

...Intance(comp:Component):* 添加组件实例。 Node  addDataDef(id:int, color:int, name:String, scale:Number):voidPerfHUD addInputChild(node:Node):NodeNode callLater(method:Function, args:Array = null):void 延迟运行指定的函数。 在控件被显示在屏幕之前调用,一般用于延...

来源: Laya2.0_api 发布时间: 20190513

449. 材质-BlinnPhong-法线贴图 [ 60%]

...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Spri...

来源: Laya_示例 发布时间: 20251209

450. 鼠标交互-键盘交互 [ 60%]

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() { listenKeyboard(); createLogger(); Laya.timer.frameLoop(1, this, keyboardInspector); } function listenKeyboard() { keyDownList = []; //添加键盘按下事件,一直按着...

来源: Laya_示例 发布时间: 20251209