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

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

931. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 39%]

...onal/bull.lh" private sEnemyRes = "remote/model/res/Conventional/man_1.lh" constructor() { super(); let self = this; Util3d.loadRes( [ this.sMapRes, this.sBullRes, this.sEnemyRes ], function (bIsFinish) { if (bIsFinish) { self.onResFinish(); } } ) } onResFinish() { let pNewScene = <Laya.Scene3D&g...

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

932. laya.spine.SpineSkeleton_API3.0 [ 39%]

...der,SpineSkeleton三部分组成。 Hierarchy Sprite SpineSkeleton Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag PAUSED PLAYING STOPPED drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alp...

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

933. 照相机-正交相机 [ 39%]

...10, 500, 0); private _translate: Laya.Vector3 = new Laya.Vector3(0, 0, 0); constructor() { Laya3D.init(1024, 768, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_HEIGHT; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var dialog: Laya.Image = Laya.stage.addChild(new Laya.Image...

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

934. 碰撞检测 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

935. Laya.Pool用法 [ 38%]

...ublic static PROTO_STRING_VALUE: string = "proto_ParamsProto";         constructor() {             // Pool.recover(ProtoPool.PROTO_HEAD, new com.bigao.h5.proto.Head());             // Pool.recover(ProtoPool.PROTO_BINARY_REQUEST, new com.bigao.h5.proto.BinaryRequest());          ...

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

936. 分享水波一个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

937. 关于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

938. 骨骼动画-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_示例 发布时间: 20250226

939. 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

940. 鼠标交互-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_示例 发布时间: 20250226