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

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

211. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 63%]

...部代码如下所示: ```typescript /* ImageRunTime逻辑类 */ export default class ImageRunTime extends Laya.Image{ public scaleTime:number = 100; constructor() { super(); //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 t...

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

212. laya.d3.physicscannon.shape.CannonCompoundColliderShape_API3.0 [ 63%]

...pe/CannonCompoundColliderShape.ts:58 Parameters shape: CannonColliderShape Default value localOffset: Vector3 = null Returns void bindRigidBody bindRigidBody(rigidbody: CannonPhysicsComponent): void Defined in laya/d3/physicsCannon/shape/CannonCompoundColliderShape.ts:92 Parameters rigidbody: Cannon...

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

213. laya.d3.core.light.SpotLight_API3.0 [ 63%]

...rs method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer Defined in laya/display/Node.ts:609 清...

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

214. [LayaAir2]字节小游戏物理的坐标不一样,碰撞盒会比laya的小,物理的位置也不一样 [ 63%]

...码用到了更新物理根节点去做相机跟踪 代码如下: export default class test extends Laya.Script {         strWorldRoot:Laya.Sprite;     constructor() { super(); }     cameraPlayerOffset:Laya.Point=new Laya.Point(18,0);     cameraOffset:Laya.Point=new Laya.Point(180,570); ...

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

215. 2.0下资源加载和销毁内存问题 [ 63%]

...例 class bitmapimg extends Laya.Image //2.0版本 这里区别为export default class bitmap extends Laya.Image { private szurl:string="" constructor(url:string){ super() this.onUrlChangeHandler(url); } protected onUrlChangeHandler(url:string):void     { if(this.szurl!="") this.disp() this.szur...

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

216. drawToCanvas绘制显示不全 [ 63%]

...关的链接 提交 3 个回复 之肖 赞同来自: 测试代码 export default class TestView extends TestViewUI {     constructor() {         super();     }     onAwake() {         this.nativeImg = new Image();         let style = this.nativeImg.style;         style.position...

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

217. laya.d3.core.RenderableSprite3D_API3.0 [ 62%]

...rs method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer Defined in laya/display/Node.ts:609 清...

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

218. laya.resource.NativeRenderTexture2D_API3.0 [ 62%]

...G defuv flipyuv Accessors anisoLevel baseMipmapLevel compareMode cpuMemory defaultTexture depthStencilFormat destroyed dimension filterMode format gammaCorrection gammaSpace generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCount obsolute offsetX offsetY referenceCount samples so...

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

219. laya.d3.core.MeshSprite3D_API3.0 [ 62%]

.../d3/core/MeshSprite3D.ts:29 创建一个 MeshSprite3D 实例。 Parameters Default value mesh: Mesh = null 网格,同时会加载网格所用默认材质。 Default value name: string = null 名字。 Returns MeshSprite3D Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defin...

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

220. laya.gltf.glTFResource_API3.0 [ 62%]

...Resource._addReference Defined in laya/resource/Resource.ts:203 Parameters Default value count: number = 1 Returns void _clearReference _clearReference(): void Inherited from Resource._clearReference Defined in laya/resource/Resource.ts:220 Returns void _parse _parse(data: glTF, createURL: string, p...

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