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

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

331. 如何获取HTMLDivElement对象的文本值 [ 69%]

...ment = new HTMLDivElement();             var html:String = "<span color='#e3d26a'>使用</span>";             p.innerHTML = html; 然后我如何才能从p中获取"<span color='#e3d26a'>使用</span>". 2017-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

332. 关于3d的碰撞检测 [ 69%]

...t.LINES, LayaAir3D.camera); this.phasorSpriter3D.line(this._linePos, this._color, this.ray.origin, this._color); this.phasorSpriter3D.end(); console.log("碰撞检测" + this.outHitInfo.distance);//一直都是-1   附件 : --> 2018-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

333. 3D场景环境设置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

... 篇有讲解 关于 SkyPanoramic 材质,下面看看如何设置 Tint Color:颜色,如图2-4,改变颜色,可以看到改变后的颜色叠加到纹理上了 (图2-4) Rotation:旋转,从0到360度,旋转可以帮助我们调整天空盒的位置 天空盒随着视角的旋转改...

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

334. textInput的单行输入&多行输入(TypeScript-LayaAir基础篇(TS)-文本) [ 69%]

...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createSingleInput(); this.createMultiInput(); } private createSingleInput(): void { var inputText: Input = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; ...

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

335. laya.d3.core.light.SpotLight_API3.0 [ 69%]

...a _scene _url name tag WORLDINVERTFRONT Accessors active activeInHierarchy color components destroyed displayedInStage hideFlags id intensity is3D layer lightWorldMatrix lightmapBakedType mode numChildren parent range scene shadowDepthBias shadowDistance shadowMode shadowNearPlane shadowNormalBias s...

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

336. styles.xml报错 [ 69%]

...pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"> <h3>This page contains the following errors: </h3> <div style="font-family:monospace;font-size:12px">error on line 1 at column 53: attributes construct error </div> <h...

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

337. laya.d3.core.material.ParticleMaterial [ 69%]

...剪值。 BaseMaterial blend : int透明混合。BaseMaterial blendConstColor : Vector4混合常量颜色。BaseMaterial blendEquation : int混合方程。BaseMaterial blendEquationAlpha : intAlpha混合方程。BaseMaterial blendEquationRGB : intRGB混合方程。BaseMaterial cull : int渲染...

来源: laya_api 发布时间: 20170603

338. 鼠标交互-键盘交互 [ 69%]

...age.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.listenKeyboard(); this.createLogger(); Laya.timer.frameLoop(1, this, this.keyboardInspector); } listenKeyboard() { const Event = Laya.Event; // 用Set实现更好...

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

339. HTMLDivElement 中contextWidth计算有问题 [ 69%]

...lement = new HTMLDivElement(); var str:String = "<span style='font:48px;color:#ffffff;'>白色文本</span>"; div.innerHTML = str; trace(div.contextWidth);可以把你div的样式,给span赋值上,得到同样的效果! 2017-03-09 0 0 分享 微博 QZONE 微信 luuren 赞同来自:...

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

340. laya.d3.shader.SubShader_API3.0 [ 69%]

...IGHT0, ShaderDataType.Vector4] Defined in laya/d3/shader/SubShader.ts:49 a_Color a_Color: [number, Vector4] = [VertexMesh.MESH_COLOR0, ShaderDataType.Vector4] Defined in laya/d3/shader/SubShader.ts:48 a_Normal a_Normal: [number, Vector3] = [VertexMesh.MESH_NORMAL0, ShaderDataType.Vector3] Defined in...

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