大约有 283 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0043 秒)
.../*碰撞检测信息*/ 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
... { 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
...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
... = 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
... 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
...: {"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
...以确保控件已经创建完毕的。)[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
...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
... 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
...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