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

大约有 1,229 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0046 秒)

911. sound manager在MOUSE_OVER事件中无法播放 [ 52%]

...Handler = Laya.Handler;     import WebGL = Laya.WebGL;      export class Sound_SimpleDemo {         //声明一个信息文本         private txtInfo: Text;          constructor() {             // 不支持WebGL时自动切换至Canvas   ...

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

912. 滤镜-颜色滤镜 [ 52%]

... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Filters_Color { private ApePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, ...

来源: Laya_示例 发布时间: 20241001

913. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 52%]

...0版本之后材质基类由BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义材质之前...

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

914. laya.ani.AnimationPlayer_API3.0 [ 52%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/ani/AnimationPlayer" AnimationPlayer Class AnimationPlayer AnimationPlayer 类用于动画播放器。 Hierarchy EventDispatcher AnimationPlayer Index Constructors constructor Properties isCache pl...

来源: Laya3.0_api 发布时间: 20231115

915. 鼠标交互-双指缩放(多点触控) [ 52%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Scale { //上次记录的两个触模点之间距离 private lastDistance: number = 0; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Brow...

来源: Laya_示例 发布时间: 20241001

916. laya.physics.EdgeCollider_API3.0 [ 52%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/EdgeCollider" EdgeCollider Class EdgeCollider 2D边框碰撞体 Hierarchy ColliderBase EdgeCollider Index Constructors constructor Properties _extra _singleton fixture label owner rigidBody...

来源: Laya3.0_api 发布时间: 20231115

917. laya.resource.TextResource_API3.0 [ 52%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/TextResource" TextResource Class TextResource 文字资源 Hierarchy Resource TextResource Index Constructors constructor Properties _id data destroyedImmediately format lock name url uuid...

来源: Laya3.0_api 发布时间: 20231115

918. laya.d3.core.light.Light_API3.0 [ 52%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/light/Light" Light Class Light LightSprite 类用于创建灯光的父类。 Hierarchy Component Light SpotLightCom DirectionLightCom PointLightCom AreaLightCom Index Constructors construct...

来源: Laya3.0_api 发布时间: 20231115

919. Dialog 第一次打开总是出现在窗口右下角,这是为啥,再打开就正常剧中了? [ 52%]

...正常剧中了?   随便弄一个窗口,都是这样,代码如下 export default class SettingDialog extends Laya.Dialog { constructor() { super(); this.loadScene('assets/scenes/dialogs/SettingDialog.scene'); } }{ "x":0, "type":"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", ...

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

920. laya.physics.joint.PrismaticJoint_API3.0 [ 52%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/joint/PrismaticJoint" PrismaticJoint Class PrismaticJoint 平移关节:移动关节允许两个物体沿指定轴相对移动,它会阻止相对旋转 Hierarchy JointBase PrismaticJoint...

来源: Laya3.0_api 发布时间: 20231115