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

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

1. 图像组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 100%]

...制Image: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Image }) public img: Laya.Image; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ on...

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

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

...svg>'; var DOMURL = window.URL || window.webkitURL || window; var img = new Image(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL(svg); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); 怎么运行上...

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

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

...焙后的效果 2.3 使用代码设置 //创建点光源 let pointLight = new Laya.Sprite3D(); let pointCom = pointLight.addComponent(Laya.PointLightCom); this.scene.addChild(pointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.rang...

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