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

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

181. 学会编写d.ts声明文件(TypeScript-IDE篇(TS)-代码模式基础) [ 48%]

...interface IOctreeOptions { root: Octree; aabb: AABB; } export class Octree extends OctreeNode { maxDepth: number; constructor(aabb: AABB, options: IOctreeOptions); aabbQuery(aabb: AABB, result: Object[]): Object[]; insert(aabb: AABB, elementData: Object): boolean; rayQuery(ray: Ray, treeTransform: T...

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

182. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 48%]

...a package { import laya.net.HttpRequest; public class HttpRequestExtension extends HttpRequest { public function HttpRequestExtension() { super(); } public override function send(url:String, data:*=null, method:String="get", responseType:String="text", headers:Array=null):void { super.send(url,data,...

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

183. Cannot read property 'rayCast' of undefined [ 48%]

...annot read property 'rayCast' of undefined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config...

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

184. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 48%]

...t"; import UIMain from "../ui/Game/UIMain";  export default class GameWnd extends BaseWin {     public view: UIMain;     /** 角色 */     private character: Laya.Sprite     /** 角色刚体*/     private rig: Laya.RigidBody     /** 医疗包*/     private addhp: Laya.Sprite     /**...

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

185. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...t { regClass, property } = Laya; @regClass() export class CameraMoveScript extends Laya.Script3D { /** @private */ protected _tempVector3: Laya.Vector3 = new Laya.Vector3(); protected lastMouseX: number = 0; protected lastMouseY: number = 0; protected yawPitchRoll: Laya.Vector3 = new Laya.Vector3();...

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

186. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 47%]

...d消失 parent.child_1.rotation = Math.random() * 180; } } class ChildView extends ui.ChildViewUI{ constructor(){ super(); var panel = new Laya.Panel(); panel.pos(0,0); panel.size(200,50); this.addChild(panel); var panelChild = new Laya.Sprite(); panelChild.pos(0,0); panelChild.size(200,50); panel.a...

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

187. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

...: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //共享材质,用于合批 public batchMat: Laya.Material; //颜色数目 private _colorNums = 20; //精灵数目 private _spriteNums = 200; private _createColorBufferData() { //随机给20个颜色值 ...

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

188. 描边Shader,使用了两个Pass [ 47%]

...截图如下:   核心代码如下 export default class OutlineMaterial extends Laya.BaseMaterial { constructor() { super() var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord': Laya.VertexMesh.MESH_TEXTURECOORDINATE0, } var uni...

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

189. lib/arm/liblayaair.so 总是崩溃 [ 45%]

...ei.pgmng.PGAction@3a09166 actionId =10010 pkg =com.huawei.android.launcher extend1 =19752 extend2 = flag =3 type =1 08-14 10:57:51.320 5024-6106/? W/PGMiddleWare: in handleAction method, action = 10010     in handleAction, invoke client = com.huawei.pgmng.middleware.AudioEffectLowPowerImpl@ef6459e...

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

190. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...; const { regClass, property } = Laya; @regClass() export class TestSprite extends Laya.Script { // 用于显示鼠标点击的位置 @property({ type: Laya.Sprite }) public hit: Sprite; private _temp: Sprite; private _allAgent: Nav2DAgent[] = []; private findCompents(lists: any[], sprite: Sprite, c...

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