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

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

1271. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 38%]

...e ray:Laya.Ray; /*碰撞检测信息*/ private outHitInfo:Laya.RaycastHit; constructor() { super(); this.ray = new Laya.Ray(new Laya.Vector3(0,0,0),new Laya.Vector3(0,-2,0)); this.outHitInfo = new Laya.RaycastHit(); } /*覆写3D组件方法,指3D对象加载组件时执行 *owner:此组件所属...

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

1272. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

... : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgr...

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

1273. 分享水波一个shader [ 38%]

...ex"); public readonly Time:number = Shader3D.propertyNameToID("u_Time");  constructor() { super();  var vs:string = ` attribute vec4 a_Position; attribute vec2 a_Textcoord; attribute vec3 a_Normal; uniform mat4 u_WorldMat; uniform mat4 u_MvpMatrix;   varying vec2 v_textcoord; varying vec3 v_norma...

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

1274. 关于mac 升级 为 high sierra 后运行出错 [ 38%]

...还是报错StarPoker.max.js:6903 Uncaught TypeError: Rectangle is not a constructor 2017-11-28 0 0 分享 微博 QZONE 微信 lidd_123 赞同来自: mac 升级 为 high sierra 后运行出错 这个在新版本里没有解决啊 2017-11-28 0 0 分享 微博 QZONE 微信 matrixQ 赞同来自: 今天...

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

1275. 骨骼动画-Spine事件 [ 38%]

...nIndex:number = 0; private mFactory2:Templet; private mLabelSprite:Sprite; constructor() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.mLabelSprite = new Sprite(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spine...

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

1276. laya.ani.bone.Skeleton_API3.0 [ 38%]

...imationPlayer,Skeleton三部分组成。 Hierarchy Sprite Skeleton Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY aniM...

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

1277. laya.ui.WXOpenDataViewer_API3.0 [ 38%]

...方式显示开放域数据 Hierarchy UIComponent WXOpenDataViewer Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX ce...

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

1278. 鼠标交互-Hold [ 38%]

...hold事件时间为1秒 private ape: Sprite; private isApeHold: Boolean; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "show...

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

1279. laya.media.VideoNode_API3.0 [ 38%]

...lla.org/en-US/docs/Web/HTML/Element/video Hierarchy Sprite VideoNode Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blen...

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

1280. laya.ui.UIComponent_API3.0 [ 38%]

...Slider ScrollBar ComboBox ProgressBar TipManager OpenDataContextView Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blen...

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