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

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

61. laya.ui.Dialog_API3.0 [ 57%]

...Button; import laya.ui.Dialog; import laya.ui.Image; class Dialog_Instance extends Dialog { function Dialog_Instance():void { var bg:Image = new Image("resource/ui/bg.png"); bg.sizeGrid = "40,10,5,10"; bg.width = 150; bg.height = 250; addChild(bg); var image:Image = new Image("resource/ui/image.png"...

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

62. swf转成H5资源显示超出原有范围 [ 56%]

...Context;     import flash.system.Capabilities;     public class Main extends Sprite     {         public function Main():void         {             if (stage) init();             else addEventListener(Event.ADDED_TO_STAGE, init);         }          ...

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

63. laya.ui.Tree_API3.0 [ 56%]

... import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; class Item extends Box { public function Item() { this.name = "render"; this.right = 0; this.left = 0; var selectBox:Clip = new Clip("resource/ui/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; selectBox.height = 24; selectBox...

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

64. 3D中摄像机绕物体旋转该如何实现? [ 56%]

....AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary> //public targe...

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

65. 官方案例里摄像机绕物体旋转脚本的问题 [ 56%]

....AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary> //public targe...

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

66. 微信小游戏渲染开放域卡顿处理 [ 53%]

...开放域代码请勿使用该类      */     export class WXBitmap extends Laya.Sprite {         private $viewName: string;         private $texture: Laya.Texture;         private $bitmap: any;         private $timer: lie.Timer;         public auto: boolean = true;    // ...

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

67. 脚本组件继承于 Laya.Script。 其中的_update方法,多长时间会调用一次? 可以设置调用时间吗? [ 53%]

...nent3D</code> 类用于创建组件的父类。 */ class Component3D extends laya.events.EventDispatcher implements laya.d3.core.render.IUpdate { protected static _uniqueIDCounter: number; protected _id: number; protected _cachedOwnerLayerMask: number; protected _cachedOwnerEnable: boolean; pr...

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

68. 网络通信 · LayaAir3.0文档 · LAYABOX [ 46%]

...。下面是一个简单的继承的示范: class HttpRequestExtension extends Laya.HttpRequest { constructor() { super(); } public send(url:string,data:any=null,method:string="get", responseType:string="text", headers:any=null):void{ super.send(url,data,method,responseType,headers); this._http.up...

来源: Laya3.0_文档 发布时间: 20230719

69. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 45%]

...t { regClass, property } = Laya; @regClass() export class CameraMoveScript extends Laya.Script3D { /** @private */ protected _tempVector3: Laya.Vector3 = new Laya.Vector3(); protected lastMouseX: number = 0; protected lastMouseY: number = 0; protected yawPitchRoll: Laya.Vector3 = new Laya.Vector3();...

来源: Laya3.0_文档 发布时间: 20240624

70. 精灵 · LayaAir3.0文档 · LAYABOX [ 41%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活...

来源: Laya3.0_文档 发布时间: 20240528