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

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

741. 垂直滑动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 60%]

... Laya.loader.load(skins, Laya.Handler.create(this, this.placeVSlider)); } private placeVSlider(): void { let vs: Laya.Slider = new Laya.VSlider(); vs.skin = "vslider.png"; vs.height = 300; vs.pos(400, 50); vs.min = 0; vs.max = 100; vs.value = 50; vs.tick = 1; vs.changeHandler = new Laya.Handler(this...

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

742. 水平滑动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 60%]

... Laya.loader.load(skins, Laya.Handler.create(this, this.placeHSlider)); } private placeHSlider(): void { let hs: Laya.Slider = new Laya.HSlider(); hs.skin = "hslider.png"; hs.width = 300; hs.pos(50, 500); hs.min = 0; hs.max = 100; hs.value = 50; hs.tick = 1; hs.changeHandler = new Laya.Handler(this,...

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

743. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 60%]

...:** ```typescript // 程序入口 class GameMain{ //按钮资源路径 private skin:string = "button.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,...

来源: Laya2.0_文档 发布时间: 20210714

744. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 60%]

...import laya.webgl.WebGL; public class ComponentDemo { //按钮资源路径 private var skin:String = "./res/img/btn_test.png"; public function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(1334,750, WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ff...

来源: Laya2.0_文档 发布时间: 20210715

745. 模型与动画的导入使用 · LayaAir3.4 · 引擎文档 · LAYABOX [ 60%]

...Class, property } = Laya; @regClass() export class Main extends MainBase { private _animator: Laya.Animator; private _isRun: boolean; onAwake() { console.log("Game start"); //加载指定的模型预制体,并添加到Scene3D场景内 Laya.loader.load("girl/girl.lh").then(res => { let girl : La...

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

746. Laya.timer.frameLoop [ 59%]

...lSignal,this);         }    // 更新鱼 子弹的位置         private update(){             // 不在游戏界面             if(fish.data.PlayerData.m_interface != 3){                 return;             }                       // 花费的时间 ...

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

747. 3D中摄像机绕物体旋转该如何实现? [ 59%]

...上一次手机触摸位置判断用户是在左放大还是缩小手势 private oldPosition1: Vector3 = new Vector3(); private oldPosition2: Vector3 = new Vector3(); private m_IsSingleFinger: boolean; /* private void ScaleCamera() { //计算出当前两点触摸点的位置 var tempPosition1 = Inpu...

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

748. http请求能否取消 [ 59%]

...ueying 赞同来自: 可以清除当前请求,请参考clear方法/** * @private * 清除当前请求。 */ protected function clear():void { var http:* = this._http; http.onerror = http.onabort = http.onprogress = http.onload = null; } 2016-12-05 0 0 分享 微博 QZONE 微信 为什么被折叠?...

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

749. 官方案例里摄像机绕物体旋转脚本的问题 [ 59%]

...上一次手机触摸位置判断用户是在左放大还是缩小手势 private oldPosition1: Vector3 = new Vector3(); private oldPosition2: Vector3 = new Vector3(); private m_IsSingleFinger: boolean; /* private void ScaleCamera() { //计算出当前两点触摸点的位置 var tempPosition1 = Inpu...

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

750. Laya.stage.mouseX; Laya.stage.mouseY取到的坐标用来赋给画曲线方法的起点;在左顶点正常,越往右下角起点就越偏移了 [ 59%]

...,越往右下角起点就越偏移了 // 程序入口 class GameMain { private ps: Laya.Sprite; a: number; b: number; path: Array<number> = ; constructor() { Laya.init(1600, 1400); Laya.stage.bgColor = "#000000"; this.ps = new Laya.Sprite(); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.do...

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