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

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

401. 垂直滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

... @regClass() export class UI_VSlider extends Laya.Script { constructor() { super(); } onAwake(): void { let skins: any[] = []; skins.push("vslider.png", "vslider$bar.png");//图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeVSlider)); } private...

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

402. 水平滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

... @regClass() export class UI_HSlider extends Laya.Script { constructor() { super(); } onAwake(): void { let skins: any[] = []; skins.push("hslider.png", "hslider$bar.png");//图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeHSlider)); } private...

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

403. 如何将一段文字放置到粘贴板 , 或者说点击一个按钮后复制copy一段文字? [ 42%]

...附加百万原生API 的光环 2017-06-09 0 0 分享 微博 QZONE 微信 super1013 赞同来自: 你是怎么实现的,能不能分享一下,我的功能和你的一样 2018-01-30 0 0 分享 微博 QZONE 微信 moketao 赞同来自: 我是用 html <button> + clipboard.js 最终实现的...

来源: Laya_社区 发布时间: 20170531

404. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...r = 5; private assets: any[]; private dialog: Laya.Dialog; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 图片资源来自“引擎API使用示例” this.assets = ["resources/res/ui/dialog (1)....

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

405. 一个简单的跑酷曲面shader分享 [ 42%]

...e: number = Laya.Shader3D.propertyNameToID("u_ZDistance"); constructor() { super(); this.setShaderName("CustomCurveShader"); this.enableVertexColor = false; this.albedoColor = new Laya.Vector4(0.0, 0.0, 0.0, 0.0); this.xoffset = 15.0; this.yoffset = -15.0; this.zdistance = 200.0; } public static ini...

来源: Laya_社区 发布时间: 20201009

406. laya加载unity插件导出的场景 physics3D is not a function [ 42%]

... export default class GameUI extends ui.test.TestSceneUI { constructor() { super();       //添加3D场景 Laya.Scene3D.load("res/Conventional/SimpleTown_DemoScene.ls",Laya.Handler.create(this,function(s:Laya.Scene3D):void{ var scene = s; Laya.stage.addChild(scene); //创建摄像机(横纵比,...

来源: Laya_社区 发布时间: 20181227

407. 请大家帮助优化一下这个抛物线的代码 [ 42%]

...te static cached:boolean = false; private body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/ball.png"); this.body.pivot(12,12); } this.addChild(this.body); Laya.timer.frameLoop(1,...

来源: Laya_社区 发布时间: 20171108

408. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 42%]

...E_DOWN, this, function (e) { list.addItem(1); }); function Item() { Item.__super.call(this); this.size(416, 270); this.text = new Text(); this.text.fontSize = 20; this.text.pos(12, 5); this.text.color = "#FF00FF"; this.text.zOrder = 1; this.addChild(this.text); this.setImg = function(data) { var aar...

来源: Laya_社区 发布时间: 20170920

409. 使用typescript开发项目,解决文件引用顺序问题 [ 41%]

...orld.ts export default class HelloWorld extends Laya.Text { constructor(){ super() this.text = "Hello Layabox" this.color = '#ffffff' } }   2017-11-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Monica - 知...

来源: Laya_社区 发布时间: 20171120

410. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 41%]

...put = laya.ui.TextInput; var WID = 373, HEI = 30; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.img.graphics.drawRect(0, 0, WID, HEI - 2, "#eeeeee"); this.label = new Label(); this.addChild(this.label); this.input = new TextInpu...

来源: Laya_社区 发布时间: 20180312