大约有 2,796 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0173 秒)
...戏后台使用富文本编辑器插件来更新游戏的公告,前端会获取这个公告的html并赋值给HTMLDivElement进行展示 在laya1.0没有问题,在laya2.0就有问题: 1.<br />标签不能在<p>或者<span>里使用,但可以在<div>里使用,例子d...
来源: Laya_社区 发布时间: 20190815
...件会自动刷新,无需代码。例如: //下面是UI进程代码 //获取选中的节点 let node = Editor.scene.getSelection()[0]; //修改节点属性,场景里的对象会自动同步,无需手动 node.props.x = 100; //修改组件属性,场景里的对象会自动同步,无需手...
来源: Laya3.0_文档 发布时间: 20251010
...: PhysicsComponent): boolean Defined in laya/d3/utils/Physics3DUtils.ts:69 获取是否忽略两个碰撞器的碰撞检测。 Parameters collider1: PhysicsComponent 碰撞器一。 collider2: PhysicsComponent 碰撞器二。 Returns boolean 是否忽略。 Static setColliderCollision setColliderCol...
来源: Laya3.0_api 发布时间: 20231115
...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
...clickHandler():void{ var url:string = this.qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个延时在获取。 this.qrcodeSp.loadImage(url,0,0,100,100); } } new Main; ``` 编译运行上面的代码,然后点击舞台可以看到,二维码已经显示到...
来源: Laya2.0_文档 发布时间: 20210715
...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
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display...
来源: Laya3.0_api 发布时间: 20231115
...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
...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
...且不会随着绘制内容的变化而变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 currentCreationLayer currentCreationLayer: number = Math.pow(2, 0) Defined in laya/d3/core/scene/Sc...
来源: Laya3.0_api 发布时间: 20231115