大约有 134 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0043 秒)
...Sprite3D都有静态或者动态的两种状态,当一个物体标记为static后,就确保这个物体在游戏场景中为静态的、不会移动的物体,进而在游戏的运行过程中让游戏有更加流畅的运行体验。一般而言,在场景中完全静止的物体标记成stat...
来源: Laya3.0_文档 发布时间: 20251010
...derableArray 各部分渲染节点数组 * @param skeletonMap 骨骼map */ static addAniamtior(animatorRoot: Sprite3D, renderableMap: Map>, skeletonMap: Map) { var animator: Animator = animatorRoot.addComponent(Animator); // animator 添加 渲染节点 队列 renderableMap.forEach(renderableArray =...
来源: Laya2.0_文档 发布时间: 20210715
...位。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