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

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

121. 和原生Dom交互 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

... //这里是重点,文字的效果我们是通过svg支持的css样式来设置 text-shadow设置的是文字的css样式效果,假如开发者想改变文字的样式,可以修改style即可。 上面是在JavaScript中,用原生的dom元素img来进行显示,那么在游戏中我们想...

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

122. HTTP通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

... * @param responseType (default = "text")Web 服务器的响应类型,可设置为 "text"、"json"、"xml"、"arraybuffer"。 * @param headers (default = null) HTTP 请求的头部信息。参数形如key-value数组:key是头部的名称,不应该包括空白、冒号或换行;value是头...

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

123. laya.d3.component.volume.batchvolume.StaticBatchVolume_API3.0 [ 39%]

...d Defined in laya/d3/component/Volume/BatchVolume/StaticBatchVolume.ts:161 设置自定义的合批方案BatchRender Returns BatchRender[] Defined in laya/d3/component/Volume/BatchVolume/StaticBatchVolume.ts:148 设置自定义的合批方案BatchRender Parameters value: BatchRender[] Returns void d...

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

124. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 38%]

... //这里是重点,文字的效果我们是通过svg支持的css样式来设置 text-shadow设置的是文字的css样式效果,假如开发者想改变文字的样式,可以修改style即可。 ``` 上面是在JavaScript中,用原生的dom元素img来进行显示,那么在游戏中我们...

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

125. LayaAir开发笔记(1)五十音图连连看 [ 38%]

...stat_heiht = 600; Laya.init(g_stat_width, g_stat_heiht); 加入下列代码设置窗口位置和拉伸效果。Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; Laya.stage.screenMode = Laya.Stage.SCREEN_HORIZONTAL; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDD...

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

126. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 37%]

... //这里是重点,文字的效果我们是通过svg支持的css样式来设置 text-shadow设置的是文字的css样式效果,假如开发者想改变文字的样式,可以修改style即可。 ``` 上面是在JavaScript中,用原生的dom元素img来进行显示,那么在游戏中我们...

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

127. 3D灯光与阴影 · LayaAir3.4 · 引擎文档 · LAYABOX [ 36%]

...概述二、PointLight2.1 创建点光源2.2 组件属性2.3 使用代码设置三、DirectionLight3.1 创建平行光3.2 组件属性3.3 使用代码设置四、SpotLight4.1 创建聚光4.2 组件属性4.3 使用代码设置五、AreaLight5.1 创建区域光5.2 组件属性六、如何为灯光添...

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

128. laya.d3.physics.constraints.ConfigurableConstraint_API3.0 [ 35%]

...eConstraint Class ConfigurableConstraint ConfigurableConstraint类用于可设置的约束组件 Hierarchy ConstraintComponent ConfigurableConstraint Index Constructors constructor Properties _extra _singleton disableCollisionsBetweenLinkedBodies owner runInEditor scriptPath CONFIG_MOTION_TYPE_FREE ...

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

129. laya.physics.RigidBody_API3.0 [ 35%]

...ysics.I.worldRoot=场景,然后移动场景即可 可以通过IDE-"项目设置" 开启物理辅助线显示,或者通过代码PhysicsDebugDraw.enable(); Hierarchy Component RigidBody Index Constructors constructor Properties _extra _singleton category group label mask owner runInEditor scriptPa...

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

130. laya.d3.component.Animator_API3.0 [ 35%]

...ue: AnimatorUpdateMode): void Defined in laya/d3/component/Animator.ts:123 设置更新模式 Parameters value: AnimatorUpdateMode Returns void Methods _initialize _initialize(): void Inherited from Component._initialize Defined in laya/components/Component.ts:56 Returns void _setOwner _setOwner(nod...

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