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

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

351. 发现bug,update大问题!!!!!!!!! 2.13版本 [ 50%]

...t"; import UIMain from "../ui/Game/UIMain";  export default class GameWnd extends BaseWin {     public view: UIMain;     /** 角色 */     private character: Laya.Sprite     /** 角色刚体*/     private rig: Laya.RigidBody     /** 医疗包*/     private addhp: Laya.Sprite     /**...

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

352. 如何监听移动端软键盘的弹出和收回? [ 50%]

...flash.text.TextFieldType; import flash.ui.Keyboard; public class TextInput extends Sprite { private var textInput:TextField; private var sourceWidth:Number; private var sourceHeight:Number; public function TextInput() { //转换成h5项目后获取浏览器的宽度 //[IF-JS]sourceWidth = Laya.windo...

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

353. 2.0版本可用的CameraMoveScript.ts [ 49%]

...一样的文件:   /** * ... * @author */ export class CameraMoveScript extends Laya.Script {      /** @private */     protected _tempVector3: Laya.Vector3 = new Laya.Vector3();     protected lastMouseX: number;     protected lastMouseY: number;     protected yawPitchRoll: La...

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

354. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 49%]

...</code> 是一个纹理处理类。 */ //class laya.resource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移量。*/ this.offsetX=0; /**...

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

355. 分享个资源加载的方法,类似白鹭的加载方式 [ 49%]

...似白鹭的加载方式 第一次发,不足之处还请见谅 class RES extends Laya.EventDispatcher{ // 资源组 public static groups: any; // 资源 public static resources: any; // 完成加载资源配置文件 public static ONLOADEDRESJSON: string = "onLoadedResJson"; // 资源配置文件...

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

356. 2D自由形态光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...下: const { regClass } = Laya; @regClass() export class LightEffectDemo extends Laya.Script { declare owner: Laya.Sprite; private lightComp: Laya.FreeformLight2D; private rotateSpeed: number = 2; // 增加旋转速度 private scaleTime: number = 0; private scaleSpeed: number = 3; // 增加缩放...

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

357. 2D精灵光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

... const { regClass, property } = Laya; @regClass() export class SpriteLight extends Laya.Script { @property({type: Laya.Sprite}) private spriteLight: Laya.Sprite; @property({type: Laya.Sprite}) private directLight: Laya.Sprite; @property({type: Laya.Sprite}) private background: Laya.Sprite; //组件...

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

358. 2.3.0beta 各种bug [ 49%]

...禁用的,需要重新开启 修改 laya.d3.js   class PhysicsCollider extends PhysicsTriggerComponent {      constructor(collisionGroup = Physics3DUtils.COLLISIONFILTERGROUP_DEFAULTFILTER, canCollideWith = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER) {      super(collisionGroup, canCol...

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

359. 射线检测报错,outHitInfo.sprite3D=null; [ 49%]

...射线检测报错,outHitInfo.sprite3D=null; 代码: class SceneScript extends Laya.Script{  private ray : Laya.Ray; private hit: Laya.RaycastHit; private phasorSprite3D:Laya.PhasorSpriter3D; private camera : Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene =...

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

360. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 49%]

...错,这个时候借用下any吧,如: classA implements IA{ } classB extends classA{ } var items:IA = ; function(item:classB):void {  //items.push(item);//报错,提示类型错误  //方案一  items.push(<any>item);  //方案二  var temp:IA = <IA>item;  items.push(temp); ...

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