大约有 279 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0082 秒)
... 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_示例 发布时间: 20241118
...以确保控件已经创建完毕的。)[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
...ne: Laya.Scene3D = new Laya.Scene3D; speed: number = 0.01; constructor() { super(); } /** * @private */ protected _updateRotation(): void { if (Math.abs(this.yawPitchRoll.y) < 1.50) { Laya.Quaternion.createFromYawPitchRoll(this.yawPitchRoll.x, this.yawPitchRoll.y, this.yawPitchRoll.z, this.tempRo...
来源: Laya3.0_文档 发布时间: 20241014
...random() * 180; } } class ChildView extends ui.ChildViewUI{ constructor(){ super(); var panel = new Laya.Panel(); panel.pos(0,0); panel.size(200,50); this.addChild(panel); var panelChild = new Laya.Sprite(); panelChild.pos(0,0); panelChild.size(200,50); panel.addChild(panelChild); } } new GameMain()...
来源: Laya_社区 发布时间: 20170829
... default class OutlineMaterial extends Laya.BaseMaterial { constructor() { super() var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord': Laya.VertexMesh.MESH_TEXTURECOORDINATE0, } var uniformMap = { 'u_MvpMatrix': [Laya.Sprite3D.MV...
来源: Laya_社区 发布时间: 20180925
...: 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.upload.onprogress= function(e:any):void { //...
来源: Laya3.0_文档 发布时间: 20241014