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

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

171. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 51%]

...*******************************************************/ class DollGunRole extends GunRole{  public _box: GunBox; // toset: /** 飞行的范围, 用于计算飞行路径 */ private _fly_site:Site = new SiteEntity( 10, 10, -1, 400 );  public static _ani_cached:boolean = false;  // toset: /** 飞...

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

172. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 51%]

...直等于-1?  -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel:Laya.Sprite3D; /*角色动画组件*/ public roleAni:Laya.Animator; /*角色当前动作*/ public currentAction:string = "stand"; /*角色动画是否完成*/ public aniCo...

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

173. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 51%]

...aMaxUI"; import MyDialogUI = ui.game.MyDialogUI; ​ export class MyDialog extends MyDialogUI {    constructor() {        super();   } ​    onOpened(param: any): void {        console.log("mylog------:" + JSON.stringify("onOpened"));        this.openDataView.postMsg("test10086"); ...

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

174. layaFlash 无法使用 Loader 加载外部SWF和图片 [ 50%]

...plicationDomain; import flash.system.LoaderContext; public class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { var loader:Loader=new Loader(); var context...

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

175. typeScript Java互调问题 [ 50%]

...———————————————— public class MainActivity extends Activity{          private IPlugin mPlugin = null;     private IPluginRuntimeProxy mProxy = null;     boolean isLoad=false;     boolean isExit=false;     private WebView webView = null;     private Acti...

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

176. UI-Tree [ 49%]

..."Box", "props": {"name": "render", "right": "0", "left": "0"}}; class Item extends Box { constructor() { super(); this.right = 0; this.left = 0; var selectBox: Clip = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox";//设置 selectBox 的name 为“selectBox”时...

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

177. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 48%]

....addChild(this.text); } } //激活启动类 new Main(); class MonkeyScript extends Laya.Script3D{     constructor(){         super();         this.scene = null;         this.text = null;         this.camera = null;         this.lastPosition = new Laya.Vect...

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

178. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 48%]

...一个简单的继承的示范: ```typescript 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....

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

179. 学会编写d.ts声明文件(TypeScript-IDE篇(TS)-代码模式基础) [ 48%]

...interface IOctreeOptions { root: Octree; aabb: AABB; } export class Octree extends OctreeNode { maxDepth: number; constructor(aabb: AABB, options: IOctreeOptions); aabbQuery(aabb: AABB, result: Object[]): Object[]; insert(aabb: AABB, elementData: Object): boolean; rayQuery(ray: Ray, treeTransform: T...

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

180. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 48%]

...a package { import laya.net.HttpRequest; public class HttpRequestExtension extends HttpRequest { public function HttpRequestExtension() { super(); } public override function send(url:String, data:*=null, method:String="get", responseType:String="text", headers:Array=null):void { super.send(url,data,...

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