大约有 1,253 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0067 秒)
...于节点的宽高,所以绘制的图形也是在宽高范围内。 */ export class DrawLine extends Laya.Script { declare owner: Laya.Sprite; line2DRender: Laya.Line2DRender; lastMousePos: number[] = []; isDrawing: boolean = false; // 标记是否正在绘制 // 组件被激活后执行,此时...
来源: Laya3.0_文档 发布时间: 20250214
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/render/PostEffect/ColorGradEffect" ColorGradEffect Class ColorGradEffect ColorGradEffect 类用于创建调色Effect Hierarchy PostProcessEffect ColorGradEffect Index Constructors construct...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/math/CollisionUtils" CollisionUtils Class CollisionUtils Collision 类用于检测碰撞。 Hierarchy CollisionUtils Index Constructors constructor Methods boxContainsBox boxContainsPoint boxCon...
来源: Laya3.0_api 发布时间: 20231115
...性 示例代码如下: const { regClass, property } = Laya; @regClass() export class lightTest extends Laya.Script { declare owner: Laya.Sprite; @property({ type: Laya.Sprite }) light1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh1: Laya.Sprite; @property({ type: Laya.Sprite }) mesh2: Laya....
来源: Laya3.0_文档 发布时间: 20250214
...,功能单一,建议用脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { scene3d:Laya.Scene3D; sp:Laya.Sprite3D; sp2:Laya.Sprite3D; translateA = new Laya.Vector3(-0.05, 0, 0); translateD = new Laya.Vector3( 0.05, 0, 0); constructor() { super(...
来源: Laya_社区 发布时间: 20190618
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeShaderData" NativeShaderData Class NativeShaderData Hierarchy ShaderData NativeShaderData Implements IClone INativeUploadNode Index Properties _dataType _nativeObj nat...
来源: Laya3.0_api 发布时间: 20231115
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/BaseTexture" BaseTexture Class BaseTexture BaseTexture 纹理的父类,抽象类,不允许实例。 Hierarchy Resource BaseTexture NativeRenderTexture2D RenderTexture2D RenderTexture T...
来源: Laya3.0_api 发布时间: 20231115
...t found Unity3d导出模型时 报错:LayaAir3D UnityPlugin prefab can't export You should check the texture file format add shader include file err, has add:Lighting.glsl,这个问题是什么,我就一句代码都会出现这个问题 Swift中接入其他都正常,但是在你们的conchCo...
来源: Laya_社区 发布时间: 20180715
...setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 export class Texture2dTest { private sprite3D:Laya.Sprite3D; private readonly AllPng:string[] = ["pic-001.png","output-06.png"]; private texture:Laya.Texture2D; private box; constructor(){ Laya3D.init(0, 0); Laya.stage.scaleMod...
来源: Laya_社区 发布时间: 20220815
...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Mouse { private txt: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.ali...
来源: Laya_示例 发布时间: 20250223