大约有 552 项符合查询结果, 库内数据总量为 30,956 项。 (搜索耗时: 0.0057 秒)
Laya_社区(292) Laya3.0_api(64) Laya2.0_api(59) laya_api(55) Laya2.0_文档(38) Laya3.0_文档(18) Laya2.0_示例(13) Laya_示例(13)
...示默认为true。 ## 3、宽高及位置属性 宽高及位置属性在UI制作中有着很重要的作用。主要用于调整位置及UI屏幕适配(图4)。 (图4) ### 3.1 x、y属性 x与y属性是组件在场景编辑器中的x与y轴坐标。 场景编辑器...
来源: Laya2.0_文档 发布时间: 20210714
...= Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; skins = ["../../res/ui/input (1).png", "../../res/ui/input (2).png", "../../res/ui/input (3).png", "../../res/ui/input (4).png"]; Laya.loader.load(skins, Handler.create(this, onLoadComplete)); //加载资源。 })(); function onLoadComplete() { ...
来源: Laya_示例 发布时间: 20250405
...G = 100, INPUT_WIDTH = 300, INPUT_HEIGHT = 50, Y_OFFSET = 50, skins; class UI_Input { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.align...
来源: Laya2.0_示例 发布时间: 20250405
... Public/Protected All Inherited Externals Only exported Menu Globals "laya/ui/RadioGroup" RadioGroup Class RadioGroup RadioGroup 控件定义一组 Radio 控件,这些控件相互排斥; 因此,用户每次只能选择一个 Radio 控件。 example 以下示例代码,创建了一个 RadioGro...
来源: Laya3.0_api 发布时间: 20231115
... 问题[关闭] 自己动手丰衣足食是不是所有的 uniform 和attrbuite 都写在 Laya.Value2D 扩展里面 类似 attribute vec2 position; attribute vec2 texcoord; attribute vec4 color; uniform vec2 size; uniform mat4 mmat; varying vec2 v_texcoord;varyi...
来源: Laya_社区 发布时间: 20180313
...写了一次,不知道为什么无法实现点击。 (function() { var guideSteps = [ { x: 151, y: 575, radius: 150, tip: "../../res/guide/help6.png", tipx: 200, tipy: 250 }, { x: 883, y: 620, radius: 100, tip: "../../res/guide/help4.png", tipx: 730, tipy: 380 }, { x: 1128, y: 583, radius: 110, ti...
来源: Laya_社区 发布时间: 20171031
... Public/Protected All Inherited Externals Only exported Menu Globals "laya/ui/Radio" Radio Class Radio Radio 控件使用户可在一组互相排斥的选择中做出一种选择。 用户一次只能选择 Radio 组中的一个成员。选择未选中的组成员将取消选择该组中当前所选...
来源: Laya3.0_api 发布时间: 20231115
...n } from "../common/windows/BaseWin"; import Const from "../Const"; import UIMain from "../ui/Game/UIMain"; export default class GameWnd extends BaseWin { public view: UIMain; /** 角色 */ private character: Laya.Sprite /** 角色刚体*/ private rig: Laya.RigidBody ...
来源: Laya_社区 发布时间: 20221207
...实例里面子弹射击测试,GitHub上没有吗? layaAirIde 的导出ui代码的脚本在哪里 laya2.0 ts脚本需要 import ** from ** 问题 laya2.0 GameConfig怎么更新有scene的脚本? 使用CreateHeightMap脚本生成高度图的时候,高度图旋转了90°是什么原因? 官...
来源: Laya_社区 发布时间: 20190828
... Laya.init(600, 400); this.onLoaded() function onLoaded(): void { //实例UI界面 var testUI: FishPonds = new FishPonds(); Laya.stage.addChild(testUI); Laya.timer.loop(1000, this, function () { testUI.rotation = 360 console.log("rotation!" + testUI.rotation); }); } 附件 : --> hitTestPoint.zip 201...
来源: Laya_社区 发布时间: 20180315