大约有 131 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0045 秒)
...位。Sprite stage : Stage[read-only] 对舞台 stage 的引用。Sprite staticCache : Boolean设置cacheAs为非空时此值才有效,staticCache=true时,子对象变化时不会自动更新缓存,只能通过调用reCache方法手动刷新。Sprite texture : Texture 设置一个Texture实...
来源: Laya2.0_api 发布时间: 20190513
...0,50,0); RectanglePublic Constants ConstantDefined By TEMP : Rectangle[static] 全局临时的矩形区域,此对象用于全局复用,以减少对象创建RectangleProperty Detailbottompropertybottom:Number [read-only] 此矩形底端的 Y 轴坐标。y 和 height 属性的和。 Impleme...
来源: laya_api 发布时间: 20170929
...ormation(trans:Vector3, rot:Quaternion, scale:Vector3, out:Matrix4x4):void[static] 计算仿射矩阵 Matrix4x4 createFromQuaternion(rotation:Quaternion, out:Matrix4x4):void[static] 从四元数计算旋转矩阵 Matrix4x4 createLookAt(eye:Vector3, target:Vector3, up:Vector3, out:Matrix4x4):vo...
来源: laya_api 发布时间: 20170929
...../customShader/outline02.ps"); ``` > 初始化Shader ```typescript public static function initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord0': Laya.VertexMesh.MESH_TEXTURECOORDINATE0 ...
来源: Laya2.0_文档 发布时间: 20210715
...(var i=0; i<arr.length; i++){ let str = arr[i]; if(str.indexOf("private static") != -1) continue; if(str.indexOf("private async") != -1) continue; if(str.indexOf("private get") != -1) continue; if(str.indexOf("private set") != -1) continue; if(str.indexOf("= new ") != -1) continue; //过滤这种...
来源: Laya_社区 发布时间: 20190613
...中显示。Node id : int[read-only] 获取唯一标识ID。 Sprite3D isStatic : Boolean[read-only] 获取是否为静态。 Sprite3D layer : int 获取蒙版。 Sprite3D LIGHTMAP : int[static] 着色器变量名,光照贴图。RenderableSprite3D LIGHTMAPSCALEOFFSET : int[static] 着色器变...
来源: Laya2.0_api 发布时间: 20190513
...S from "../customShader/outline02.vs"; ``` > 初始化Shader ```typescript static initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord0': Laya.VertexMesh.MESH_TEXTURECOORDINATE0 }; //所...
来源: Laya2.0_文档 发布时间: 20210715
...法只传对submit设置的值 */ public static function createSubmit(context:WebGLContext2D, ib:IndexBuffer2D, vb:VertexBuffer2D, pos:int, sv:Value2D):Submit { var o:Submit = _cache._length ? _cache[--_cache._length] : new Submit(); ...
来源: Laya_社区 发布时间: 20190628
...; gl_FragColor=albedoTextureColor; }`; ``` > 初始化Shader ```typescript static initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord0': Laya.VertexMesh.MESH_TEXTURECOORDINATE0 }; //所...
来源: Laya2.0_文档 发布时间: 20210714
...子特效的路径,创建一个粒子特效,从对象池里拿一个 static Create(path: string): Particle3D { var ret:Particle3D = Pool.getInstance().getItemByClass("Particle3D@" + path, Particle3D); ret.Init(path); return ret; } //粒子特效初始化 private Init(file_path:string): void { if...
来源: Laya3.0_文档 发布时间: 20250310