大约有 585 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0072 秒)
Laya_社区(299) Laya3.0_api(65) Laya2.0_api(58) laya_api(54) Laya2.0_示例(32) Laya_示例(31) Laya2.0_文档(26) Laya3.0_文档(20)
... break; } } private _checkInput(input: Laya.TextInput) { let sp_icon: Laya.Sprite = new Laya.Sprite(); // 判定是否有两个子对象 if (input.numChildren == 2) { input.removeChildAt(1); } // 输入框为空则插入错误图标 if (input.text.trim().length == 0) { input.changeText(""); sp_icon....
来源: Laya_社区 发布时间: 20200410
...d(testView); // //return; Laya.timer.once(3000, this, function():void{ var sprite:Sprite = new Sprite(); sprite.pos(0, 0); var texture:Texture = new Texture(Browser.window.sharedCanvas); texture.bitmap.alwaysChange = true;//小程序使用,非常费,这个参数可以根据自己的需求适当...
来源: Laya_社区 发布时间: 20180525
...export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake():...
来源: Laya3.0_文档 发布时间: 20240910
...属GLSL文件(高阶操作不推荐直接使用) u_WorldMat 世界矩阵 Sprite3DCommon.glsl u_ProjectionParams(near, far, invert, 1 / far) 投影参数 Camera.glsl u_Viewport(x, y, width, height) 视口 Camera.glsl u_CameraDirection 相机方向 Camera.glsl u_CameraUp 相机上朝向 Camera.glsl u_...
来源: Laya3.0_文档 发布时间: 20250103
...染到纹理, 而不是渲染到屏幕,从而像普通纹理一样在Sprite对象中使用。2D相机的使用与渲染纹理有很多相似之处,下面我们来介绍一下2D相机的使用方法。 3.1 2D相机与2D区域 对于2D区域节点,如果其上不存在启用了isMain属性的2...
来源: Laya3.0_文档 发布时间: 20250217
...src='res/boy.png'></img>"; */ export class HTMLDivElement extends Sprite { 下面我们通过一些示例代码来看看运行效果: 3.1 同一个文本中设置Bold、Font、FontSize、Color、下划线 【注意:目前不支持斜体、描边、span标签内嵌的方式】 示例如...
来源: Laya3.0_文档 发布时间: 20230303
...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_文档 发布时间: 20250103
...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
... _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
... _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