大约有 207 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0060 秒)
...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
...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
...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
...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
...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
...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
...: 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
...截图如下: 核心代码如下 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
...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
...; 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