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

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

541. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...getComponent(Laya.MeshRenderer).material as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0);//绿色 } /** * 发生持续物理碰撞时的3D物理碰撞器事件(不适用2D),也就是碰撞生命周期内的第二次碰撞到碰撞结束前,每帧都在触发调...

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

542. laya.ui.Label [ 40%]

...unds方法获取。设置为true,对性能有一定影响。 Sprite  bgColor : String 文本背景颜色,以字符串表示。 Label blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite  bold : Boolean 指定文本是否为粗体字。 默认值为 false,...

来源: laya_api 发布时间: 20170929

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

...mple { constructor() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor = "#ffcccc"; var data: string = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); } } ...

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

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

...typescript //初始化引擎 Laya.init(600, 400, Laya.WebGL); Laya.stage.bgColor = "#ffcccc"; var data = "data:image/svg+xml," + '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); ``` 通过data来当做ur...

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

545. laya.display.Text_API3.0 [ 38%]

...a.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var text:Text = new Text();//创建一个 Text 类的实例对象 text 。 text.text = "这个是一个 Text 文本示例。"; te...

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

546. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

...此外,此过程涉及CPU计算,动态更新时将会降低性能。 ColorFiter在WebGL下的GPU消耗可以忽略不计。 最佳的做法是,尽可能使用图像创作工具创建的位图来模拟滤镜。避免在运行时中创建动态位图,可以帮助减少CPU或GPU负载。特别...

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

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

...getComponent(Laya.MeshRenderer).material as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0);//绿色 } /** * 发生持续物理碰撞时的3D物理碰撞器事件(不适用2D),也就是碰撞生命周期内的第二次碰撞到碰撞结束前,每帧都在触发调...

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

548. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 36%]

...ction LayaUISample() { //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor ="#cccccc"; var data:String= "data:image/svg+xml,"+'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp:Sprite = new Sprite(); sp.loadImage(data,0,0,200,200); Laya.stage.addChild(sp); } } } ``` 通过data来...

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

549. laya.d3.core.Camera_API3.0 [ 36%]

...essors active activeInHierarchy aspectRatio boundFrustum canblitDepth clearColor clientHeight clientWidth components cullingMask depthTextureFormat depthTextureMode destroyed displayedInStage enableBlitDepth enableBuiltInRenderTexture enableHDR farPlane fieldOfView fxaa hideFlags id is3D layer maxlo...

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

550. laya.display.Input [ 36%]

...Bounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String 文本背景颜色,以字符串表示。 Text blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bold : Boolean 指定文本是否为粗体字。 默认值为 false,这...

来源: laya_api 发布时间: 20170929