大约有 341 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0048 秒)
...值,先获得一个数据源数组 var arr = []; for (var i = 0; i /// import test = game.ui.test.TestPageUI; import Label = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定...
来源: Laya_示例 发布时间: 20241117
...值,先获得一个数据源数组 var arr = []; for (var i = 0; i /// import test = game.ui.test.TestPageUI; import Label = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定...
来源: Laya2.0_示例 发布时间: 20200319
...le.log("size:", Laya.stage.width, Laya.stage.height); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Image = Laya.Image; import WebGL = Laya.WebGL; export class SmartScale_T { //所有适配模式 private modes:...
来源: Laya_示例 发布时间: 20241117
...哪里的问题。 下面粘贴一个小示例(仅供参考)package { import flash.display.Loader; import flash.display.MovieClip; import flash.display.Sprite; import flash.events.Event; import flash.net.URLRequest; import flash.system.ApplicationDomain; import flash.system.LoaderContext; public...
来源: Laya_社区 发布时间: 20151224
...aya.Laya.stage.removeChild(this.label); } } new Physics_Physics_Tumbler(); import { Laya } from "Laya"; import { Sprite } from "laya/display/Sprite"; import { Stage } from "laya/display/Stage"; import { Browser } from "laya/utils/Browser"; import { RigidBody } from "laya/physics/RigidBody"; import {...
来源: Laya2.0_示例 发布时间: 20241117
...shSprite3D1.active = false; }); } } new TerrainScene;package sceneModule { import laya.d3.core.BaseCamera; import laya.d3.core.Camera; import laya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.V...
来源: Laya_示例 发布时间: 20241117
...e() { this.apesCon.rotation += 1; } } new Sprite_Container();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Container { // 该容器用于装载4张猩猩图片 private ape...
来源: Laya2.0_示例 发布时间: 20241117
...钮)的功能,全部代码如下所示: ```typescript package game { import laya.events.Event; import laya.ui.Image; import laya.utils.Tween; /** *ImageRunTime逻辑类 * @author mengjia * */ public class ImageRunTime extends Image { //缩放时间100毫秒 public var scaleTime:int = 100; publ...
来源: Laya2.0_文档 发布时间: 20210714
...{ this.label.text = value; } } new Tween_EaseFunctionsDemo();module laya { import Input = Laya.Input; import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import List = Laya.List; import Browser = Laya.Browser; import Ease = Laya.Ease; import Ha...
来源: Laya2.0_示例 发布时间: 20241117
...y - 3); input.inputElementYAdjuster = 1; return input } })();module laya { import Input = Laya.Input; import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import List = Laya.List; import Browser = Laya.Browser; import Ease = Laya.Ease; import Ha...
来源: Laya_示例 发布时间: 20241117