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

大约有 467 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)

241. Laya.Script _start和_update以及_lateupdate不执行是什么原因呢? [ 58%]

... _start和_update以及_lateupdate不执行是什么原因呢?  class b extends Laya.Script{    _initialize(owner:Laya.Sprite3D){      super._initialize(owner);      //加打印可以执行    }        _start(state:Laya.RenderState):void{       //加打印不执行     } }   ...

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

242. 解析sk资源报错 [ 58%]

...t;     import laya.events.Event;          public class CombatRole extends BaseRole     {         private var _templet:Templet;         public function CombatRole()         {             super();             initView();         }           ...

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

243. Clip组件Bug:Play方法无法结束循环 [ 58%]

...开发,修改源码会有问题): export default class GifView extends Laya.Clip {     /**      *开始帧位置      *      * @private      * @memberof GifView      */     private frameIndex = 0;     /**      *结束帧位置      * ...

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

244. 鼠标事件能否在有图形的区域感应,特别是子项坐标为负数时(已经找到问题) [ 58%]

... import laya.display.Sprite; import laya.events.Event; public class MainUi extends Sprite { private var testPan:Sprite; public function MainUi() { super(); this.graphics.drawRect(0,0,500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild( testPan ); testPan.pos( 300,300)...

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

245. [LayaAir3]laya3.3图集使用平铺功能后绘制错误内容 [ 58%]

...0 0 分享 微博 QZONE 微信 159*****398 赞同来自: export class Main extends Laya.Scene {     onAwake(): void {         Laya.loader.load("/未命名.atlas", Laya.Loader.ATLAS).then(data=>{             let aaa = new Laya.Sprite();             this.addChild(aaa);        ...

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

246. [LayaAir3]脚本集怎么用? [ 58%]

...: ``` const { regClass, property } = Laya;  @regClass() export class Main extends Laya.Script {  async onStart() { console.log("Game start"); // 手动加载脚本集 const isSuccess = await Laya.loader.loadPackage("GScript"); // "GScript" 为分包目录名称 console.log(`isSuccess: ${isSuccess}...

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

247. 多光源渲染(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 58%]

... > 移动灯光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.t...

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

248. 多光源渲染(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 58%]

... > 移动灯光脚本 ```typescript export default class LightMoveScript extends Laya.Script3D { //需要操作的光源数组 public lights = []; //光源对应的位置偏移数组 public offsets = []; //光源对应的移动半径数组 public moveRanges = []; public onUpdate(){ var seed = Laya.t...

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

249. CameraMoveScript.as在哪儿下载群里的有错 [ 58%]

...ents.KeyBoardManager; /** * ... * @author */ public class CameraMoveScript extends Script { protected var lastMouseX:Number; protected var lastMouseY:Number; protected var yawPitchRoll:Vector3 = new Vector3(); protected var resultRotation:Quaternion = new Quaternion(); protected var tempRotationZ:Qu...

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

250. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 58%]

...是IDE篇的。   我试着用代码实现物理效果class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:l...

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