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

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

571. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 37%]

...时执行 onUpdate(): void { //让持续盒子旋转 (this.owner as Laya.Sprite).rotation++; } //开始碰撞时执行 onTriggerEnter(other: any): void { var owner: Laya.Sprite = this.owner as Laya.Sprite; if (other.label === "buttle") { //碰撞到子弹后,增加积分,播放声音特效 if (t...

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

572. HTML文本 · LayaAir3.0文档 · LAYABOX [ 35%]

...src='res/boy.png'></img>"; */ export class HTMLDivElement extends Sprite { 下面我们通过一些示例代码来看看运行效果: 3.1 同一个文本中设置Bold、Font、FontSize、Color、下划线 【注意:目前不支持斜体、描边、span标签内嵌的方式】 示例如...

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

573. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 34%]

...m() * 0.5 + 0.8; //创建圆锥形3D模型节点对象 let cone = new Laya.Sprite3D; let coneMesh = cone.addComponent(Laya.MeshFilter); let coneRender = cone.addComponent(Laya.MeshRenderer); // 创建网格 coneMesh.sharedMesh = Laya.PrimitiveMesh.createCone(0.25, 0.75); // 创建材质 let coneMate...

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

574. laya.ui.Button_API3.0 [ 32%]

...fined in laya/display/Node.ts:56 _graphics _graphics: AutoBitmap Overrides Sprite._graphics Defined in laya/ui/Button.ts:212 _ownGraphics _ownGraphics: boolean = false Implementation of ISelect._ownGraphics Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Im...

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

575. laya.ui.Radio_API3.0 [ 32%]

... _graphics _graphics: AutoBitmap Inherited from Button._graphics Overrides Sprite._graphics Defined in laya/ui/Button.ts:212 _ownGraphics _ownGraphics: boolean = false Implementation of ISelect._ownGraphics Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Im...

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

576. laya.ui.CheckBox_API3.0 [ 32%]

... _graphics _graphics: AutoBitmap Inherited from Button._graphics Overrides Sprite._graphics Defined in laya/ui/Button.ts:212 _ownGraphics _ownGraphics: boolean = false Implementation of ISelect._ownGraphics Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Im...

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

577. laya.display.Input_API3.0 [ 32%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _parseEscapeChars _parseEscapeChars: boolean Inherited from Text._parseEscapeChars Defined in laya/display/Text.ts:202 是否将字符串中的\n,\t转换为实际功能的字符 _scene _scene: Node Inherited fr...

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

578. laya.ui.TextInput_API3.0 [ 32%]

...fined in laya/display/Node.ts:56 _graphics _graphics: AutoBitmap Overrides Sprite._graphics Defined in laya/ui/TextInput.ts:118 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in ...

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

579. laya.ui.TextArea_API3.0 [ 32%]

...raphics _graphics: AutoBitmap Inherited from TextInput._graphics Overrides Sprite._graphics Defined in laya/ui/TextInput.ts:118 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in ...

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

580. LayaAir引擎工具会员专属功能介绍(TypeScript-简介篇(TS)-LayaAir引擎简介) [ 30%]

...ion():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("test/test.png"); var sp:...

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