大约有 293 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0114 秒)
...鼠标事件检测依据。 Stage对象和UI的View组件默认为true。 default false 优先检测此对象的子对象,当递归检测完所有子对象后,仍然没有找到目标对象,最后再检测此对象。 ignoreLang ignoreLang: boolean Inherited from Text.ignoreLang Defined in lay...
来源: Laya3.0_api 发布时间: 20231115
...鼠标事件检测依据。 Stage对象和UI的View组件默认为true。 default false 优先检测此对象的子对象,当递归检测完所有子对象后,仍然没有找到目标对象,最后再检测此对象。 mouseThrough mouseThrough: boolean = false Inherited from Text.mouseThrough ...
来源: Laya3.0_api 发布时间: 20231115
...,代码如下: const { regClass, property } = Laya; @regClass() export default class CameraControll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public ...
来源: Laya3.0_文档 发布时间: 20251010
...鼠标事件检测依据。 Stage对象和UI的View组件默认为true。 default false 优先检测此对象的子对象,当递归检测完所有子对象后,仍然没有找到目标对象,最后再检测此对象。 mouseThrough mouseThrough: boolean = false Inherited from Text.mouseThrough ...
来源: Laya3.0_api 发布时间: 20231115
...evel baseMipmapLevel buffered compareMode cpuMemory currentSrc currentTime defaultTexture destroyed dimension duration ended error filterMode format frameRender gammaCorrection gammaSpace gpuMemory height id loop maxMipmapLevel mipmap mipmapCount muted obsolute paused playbackRate preload readyState...
来源: Laya3.0_api 发布时间: 20231115
...mal; } //Animal.ts const { regClass, property } = Laya; @regClass() export default class Animal { @property({ type : Number }) weight : number; } 上面的示例中,组件脚本MyScript中引用了自定义的Animal对象 ,并将装饰器属性标识的类型设置为Animal, 尽管Animal不是...
来源: Laya3.0_文档 发布时间: 20251010
...落盒子脚本,实现盒子碰撞及回收流程 */ @regClass() export default class DropBox extends Laya.Script { /**盒子爆炸动画的预制体 */ @property({ type: Laya.Prefab, caption: "爆炸动画" }) private burstAni: Laya.Prefab; /**等级文本对象引用 */ private _text: Laya.Text;...
来源: Laya3.0_文档 发布时间: 20251010
...,实现子弹飞行逻辑及对象池回收机制 */ @regClass() export default class Bullet extends Laya.Script { constructor() { super(); } onEnable(): void { //设置初始速度 let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnt...
来源: Laya3.0_文档 发布时间: 20251010
... string 资源类型。比如:Loader.IMAGE。 Optional priority: number (default = 0)加载的优先级,数字越大优先级越高,优先级高的优先加载。 Optional cache: boolean 是否缓存。 Optional group: string 分组,方便对资源进行管理。 Optional ignoreCache: boolea...
来源: Laya3.0_api 发布时间: 20231115
...录下,点击贴图,勾选sRGB和Alpha Channel,TextureType依然为Default,点击Apply按钮,确保修改成功 4.3 设置火焰材质 (图4.3) 在Assets下创建一个材质,命名为FlameRoundYellowParticle,Shader使用Laya.Particle,基本上所有的粒子特效都使用此Sha...
来源: Laya3.0_文档 发布时间: 20251010