大约有 1,107 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0116 秒)
Laya_社区(584) Laya3.0_api(207) Laya2.0_文档(82) Laya_示例(59) laya_api(46) Laya3.0_文档(44) Laya2.0_api(44) Laya2.0_示例(41)
...y] 子对象数量。 Node parent : Node[read-only] 父节点。Node pickColor : Vector4RenderableSprite3D PICKCOLOR : int[static] 拾取颜色。RenderableSprite3D SAHDERDEFINE_LIGHTMAP : int[static] 精灵级着色器宏定义,光照贴图。RenderableSprite3D scene : *[read-only] 获得所...
来源: Laya2.0_api 发布时间: 20190513
...信息,可减小lm文件大小 Ignore Vertices Color 忽略顶点颜色信息,可减小lm文件大小 Texture Setting --- 贴图设置 Original Texture Type --- 需要转换格式的原始纹理类型 ...
来源: Laya_社区 发布时间: 20170428
... s.randomizeRotationDirection = 0; s.startColorType = 0; s.startColorConstant = new Vector4(1,1,1,1); s.gravity = new Vector3(0,-9.8,0); s.gravityModifier = 0; ...
来源: Laya_社区 发布时间: 20170605
...Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var bg:Image = new Image("resource/ui/bg.png");//创建一个 Image 类的实例对象 bg ,并传入它的皮肤。 bg.x = 100;//...
来源: Laya3.0_api 发布时间: 20231115
...。 export interface IGUIUtils { /** * 编辑器默认的背景颜色 */ bgColor: gui.Color; /** * 编辑器默认的分割线颜色 */ lineColor: gui.Color; /** * 编辑器默认的文字颜色 */ textColor: gui.Color; createButton(autoSize?: boolean): gui.Button; createIconButton(flat?: boolean): ...
来源: Laya3.0_文档 发布时间: 20251010
... 字体大小 font-weight:bold:none; 字体是否是粗体,功能同bold color:#ff0000; 字体颜色 stroke:2px; 字体描边宽度 strokeColor:#ff0000; 字体描边颜色 padding:10px 10px 20px 20px; 边缘的距离 vertical-align:top|bottom|middle; 垂直对齐方式 align:left|right|center; 水...
来源: Laya3.0_api 发布时间: 20231102
...此外,此过程涉及CPU计算,动态更新时将会降低性能。 ColorFiter在WebGL下的GPU消耗可以忽略不计。 最佳的做法是,尽可能使用图像创作工具创建的位图来模拟滤镜。避免在运行时中创建动态位图,可以帮助减少CPU或GPU负载。特别...
来源: Laya3.0_文档 发布时间: 20251010
...ample { public function Tree_Example() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png", "resource/ui/clip_selectBox.png", "r...
来源: Laya3.0_api 发布时间: 20231115
...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
...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