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

大约有 1,229 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0058 秒)

751. 输入设备-贪吃蛇(重力感应) [ 59%]

...dler = Laya.Handler; import WebGL = Laya.WebGL; import Event = Laya.Event; export class InputDevice_GluttonousSnake { private seg:Segment; private segments:Array = []; private foods:Array = []; private initialSegmentsAmount:number = 5; private vx:number = 0 private vy:number = 0; private targetPosit...

来源: Laya_示例 发布时间: 20241001

752. UI-Tab [ 59%]

... Tab = Laya.Tab; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Tab { private skins: Array = ["../../res/ui/tab1.png", "../../res/ui/tab2.png"]; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Lay...

来源: Laya_示例 发布时间: 20241001

753. laya.d3.utils.Physics3DUtils_API3.0 [ 59%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/utils/Physics3DUtils" Physics3DUtils Class Physics3DUtils Physics 类用于简单物理检测。 Hierarchy Physics3DUtils Index Constructors constructor Properties COLLISIONFILTERGROUP_ALLFILTER...

来源: Laya3.0_api 发布时间: 20231115

754. 鼠标交互-双指旋转(多点触控) [ 59%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Rotate { private sp: Sprite; private preRadian: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = S...

来源: Laya2.0_示例 发布时间: 20241001

755. 在laya本身的htmlDivElement中,可以任意设置标签内容么 [ 59%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! laya开发的3d跑酷 unity 粒子特效 laya插件有问题? anchor锚点设置不生效 关于同为object层,层级...

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

756. ProgressBar 代码问题 [ 59%]

... loading.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onloading extends ui.LoadingUI{        constructor(){        super();        this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void{        console.log("chan...

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

757. 请问如何使我的自定义类UIDropBox继承Laya.Sprite? [ 59%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 请问laya里如何解析json,似乎和AS3的不太一样。 请问如何获取鼠标在某个元素内 相对于这个元素的坐标 请问layaair2.0-js 怎么用程序在list中添加多元素的item 问题...

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

758. 骨骼动画-Spine事件 [ 59%]

...rt Stat = Laya.Stat; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Skeleton_SpineEvent { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmatu...

来源: Laya2.0_示例 发布时间: 20241001

759. 骨骼动画-换装 [ 59%]

...rowser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class ChangeSkin { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skelet...

来源: Laya_示例 发布时间: 20241001

760. textinput移除后再添加会将之前的内容全部赋值给全部input [ 59%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 我用list.array=Array;数据全部插进去数组里了,但是list中没有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出...

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