大约有 3,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0058 秒)
Laya_社区(1088) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(110)
...73741824; const TiledMapFlipConstHalf = TiledMapFlipConst / 2; class GridSprite extends Laya.Sprite { constructor() { super(...arguments); this.relativeX = 0; this.relativeY = 0; this.isAloneObject = fals...
来源: Laya_社区 发布时间: 20220627
...API](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=3D&class=laya.d3.core.light.LightSprite)。 除此之外,还要需要在模型上设置投影属性。 **receiveShadow:**是否接受阴影,当模型此属性为true时,计算出的阴影会在此模型上显示出来。...
来源: Laya2.0_文档 发布时间: 20210715
...动图8) 3、代码创建Dialog组件 代码运行结果: const { regClass, property } = Laya; @regClass() export class UI_Dialog extends Laya.Script { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PADDING: number...
来源: Laya3.0_文档 发布时间: 20230303
...= new laya.display.Text(); // in this line is error , so you can't defined class before "Laya.init" Laya.init(800,600); //test.text = new laya.display.Text(); // in this line is right test.text.text = "dsafdsdsada"; test.text.color = "#ff0000"; Laya.stage.addChild(test.text); </script> 2017-03...
来源: Laya_社区 发布时间: 20170302
...一直旋转。有将mask拿掉测试,发现就不会有类似问题。class GameLayer extends ui.GameLayerUI { private infos : any; constructor () { super (); this.infos = { rotation : 0 }; Laya.timer.frameLoop(1,this,()=> { this.infos.rotation += 1; if (this.infos.rotation >= 360) this.inf...
来源: Laya_社区 发布时间: 20180720
...= 0; i < spirit3D._childs.length; i++) setMaterials(spirit3D._childs[i]); }class RenderTextureDemo { private scene: Laya.Scene; private renderTargetCamera: Laya.Camera; private layaPlane: Laya.Sprite3D; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage...
来源: Laya_示例 发布时间: 20251219
...ll Inherited Externals Only exported Menu Globals "laya/net/Loader" Loader Class Loader Loader 类可用来加载文本、JSON、XML、二进制、图像等资源。 Hierarchy EventDispatcher Loader Index Constructors constructor Properties maxLoader retryDelay retryNum ANIMATIONCLIP ATLAS BUFFER FO...
来源: Laya3.0_api 发布时间: 20231115
...rt laya.ui.View; /*[COMPILER OPTIONS:ForcedCompile]*/ public class loading100 extends Box { public function loading100() { var txt:Text = new Text(); //设置文本内容 txt.text = "Hello...
来源: Laya_社区 发布时间: 20170725
...a.ui.TextInput; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_Input { private const SPACING:int = 100; private const INPUT_WIDTH:int = 300; private const INPUT_HEIGHT:int = 50; private const Y_OFFSET:int = 50; private var skins:Array; public function UI_Input() { // 不支持We...
来源: Laya_示例 发布时间: 20251219
...API](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=3D&class=laya.d3.core.light.LightSprite)。 除此之外,还要需要在模型上设置投影属性。 **receiveShadow:**是否接受阴影,当模型此属性为true时,计算出的阴影会在此模型上显示出来。...
来源: Laya2.0_文档 发布时间: 20210715