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

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

2711. laya2.0版本,富文本HTMLDivElement中<p>标签里使用<br />标签时报错,在<span>里也不行 [ 38%]

...戏后台使用富文本编辑器插件来更新游戏的公告,前端会获取这个公告的html并赋值给HTMLDivElement进行展示 在laya1.0没有问题,在laya2.0就有问题: 1.&lt;br /&gt;标签不能在&lt;p&gt;或者&lt;span&gt;里使用,但可以在&lt;div&gt;里使用,例子d...

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

2712. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 38%]

...件会自动刷新,无需代码。例如: //下面是UI进程代码 //获取选中的节点 let node = Editor.scene.getSelection()[0]; //修改节点属性,场景里的对象会自动同步,无需手动 node.props.x = 100; //修改组件属性,场景里的对象会自动同步,无需手...

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

2713. laya.d3.utils.Physics3DUtils_API3.0 [ 38%]

...: PhysicsComponent): boolean Defined in laya/d3/utils/Physics3DUtils.ts:69 获取是否忽略两个碰撞器的碰撞检测。 Parameters collider1: PhysicsComponent 碰撞器一。 collider2: PhysicsComponent 碰撞器二。 Returns boolean 是否忽略。 Static setColliderCollision setColliderCol...

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

2714. laya.d3.shader.Shader3D_API3.0 [ 38%]

...umber): SubShader Defined in laya/d3/shader/Shader3D.ts:261 在特定索引获取子着色器。 Parameters index: number 索引。 Returns SubShader 子着色器。 Static add add(name: string, attributeMap?: any, uniformMap?: any, enableInstancing?: boolean, supportReflectionProbe?: boolean): Shad...

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

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

...clickHandler():void{ var url:string = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取。 this.qrcodeSp.loadImage(url,0,0,100,100); } } new Main; ``` 编译运行上面的代码,然后点击舞台可以看到,二维码已经显示到...

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

2716. 【LIST无法拖动】参照官方实例做的 [ 38%]

...evel:"1",author:"官方发布",info:"我可以-四子"};         //获取关卡信息后格式化         let t= gf.getGuanqiaInfo(tmp);         this.text_guanqia_info.text = gf.format_GuanqiaInfo(t);         this.name =  "pic-"+ tmp;         var glow...

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

2717. laya.ani.bone.Skeleton_API3.0 [ 38%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display...

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

2718. laya.components.AnimationClip2D_API3.0 [ 38%]

...tring Inherited from Resource.url Defined in laya/resource/Resource.ts:107 获取资源的URL地址。 uuid uuid: string Inherited from Resource.uuid Defined in laya/resource/Resource.ts:109 获取资源的UUID。 Static DEBUG DEBUG: boolean = false Inherited from Resource.DEBUG Defined in laya/reso...

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

2719. laya.d3.core.particleshuriken.ShuriKenParticle3D_API3.0 [ 38%]

...lean): void Inherited from Node.active Defined in laya/display/Node.ts:655 获取自身是否激活。 Returns boolean 自身是否激活。 Inherited from Node.active Defined in laya/display/Node.ts:663 设置是否激活。 Parameters value: boolean 是否激活。 Returns void 自身是否激活...

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

2720. laya.d3.core.scene.Scene3D_API3.0 [ 38%]

...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 currentCreationLayer currentCreationLayer: number = Math.pow(2, 0) Defined in laya/d3/core/scene/Sc...

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