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

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

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

.../*碰撞检测信息*/ private outHitInfo:Laya.RaycastHit; constructor() { super(); this.ray = new Laya.Ray(new Laya.Vector3(0,0,0),new Laya.Vector3(0,-2,0)); this.outHitInfo = new Laya.RaycastHit(); } /*覆写3D组件方法,指3D对象加载组件时执行 *owner:此组件所属的3D对象 */ p...

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

252. UI运行时 · LayaAir3.0文档 · LAYABOX [ 47%]

... { console.log("Game start"); this.ui = this.owner.scene as RuntimeScript; super.baseUI(this.ui); } } import { Main } from "./Main"; import { ButtonRuntime } from "./ButtonRuntime"; const { regClass, property } = Laya; @regClass() export class ButtonScript extends Main { private ui: ButtonRuntime; o...

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

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

...ext; 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:LoaderContext=new LoaderContext(false,Applicat...

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

254. 在父sprite中添加子sprite ,移动父Sprite 子sprite为什么不动? [ 47%]

... = target.angel.level; // 构造 function IsLand() { // 初始化 IsLand.__super.call(this); // 名字 this.name = "gemini"; this.init(); } // 注册类 IsLand Laya.class(IsLand,"IsLand",laya.display.Sprite); // 原型 var _proto = IsLand.prototype; // 初始化 _proto.init = function(){ // 球体 t...

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

255. typeScript Java互调问题 [ 47%]

...       protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         getWindow().requestFeature(Window.FEATURE_NO_TITLE);         getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);  ...

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

256. UI-Tree [ 46%]

...: {"name": "render", "right": "0", "left": "0"}}; function Item() { Item.__super.call(this); this.right = 0; this.left = 0; var selectBox = new Clip("../../res/ui/tree/clip_selectBox.png", 1, 2); selectBox.name = "selectBox"; //设置 selectBox 的name 为“selectBox”时,将被识别为树结...

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

257. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 46%]

...以确保控件已经创建完毕的。)[i]protected initialize(): void { super.initialize(); this._txUserName["fontStyle"] = "default_1"; // let tf: TextFormat = new TextFormat(); // tf.color = "#ffff00"; // tf.fontSize = 30; // tf.stroke = 2; // tf.strokeColor = "#000000"; // this._txUserName["fon...

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

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

...MonkeyScript extends Laya.Script3D{     constructor(){         super();         this.scene = null;         this.text = null;         this.camera = null;         this.lastPosition = new Laya.Vector2(0, 0);         this.distance = 0.0;        ...

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

259. List属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 45%]

... var Image = Laya.Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var L...

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

260. Cannot read property 'rayCast' of undefined [ 45%]

...fined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D(); config3D.is...

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