与其向方法传递数字或在事件回调函数中比较数字,不如使用以下枚举来实现。 示例:
Character.Subscribe("StanceModeChange", function(character, old_stance, new_stance)
if (new_stance == StanceMode.Standing) then
Console.Log("我在站立!")
else if (new_stance == StanceMode.Crouching) then
Console.Log("我在下蹲!")
end
end)
local my_light = Light(Vector(-5, 0, 50), Rotator(), Color.RED, LightType.Point)
character:SetViewMode(ViewMode.FPS)
使用枚举的函数仍然接收数字作为参数(一如既往),使用枚举只是一种便利措施。
所有枚举
🧑💻API Source
This page is auto-generated! The Functions, Properties and Events described here are defined in our
GitHub's API Repository! Feel free to commit suggestions and changes to the source .json API files!
AimMode
角色在持枪时用于改变瞄准模式
Used by Character.GetWeaponAimMode, Character.SetWeaponAimMode, Character WeaponAimModeChange Event, Character WeaponAimModeChange Event.
| Label | Value | Description |
|---|
AimMode.None | 0 | |
AimMode.ADS | 1 | |
AimMode.ZoomedZoom | 2 | |
AimMode.Zoomed | 3 | |
AimMode.ZoomedFar | 4 | |
AnimationSlotType
Used by Character.PlayAnimation, Melee.AddAnimationCharacterUse.
| Label | Value | Description |
|---|
AnimationSlotType.FullBody | 0 | |
AnimationSlotType.UpperBody | 1 | |
AnimationSlotType.Head | 2 | |
AssetType
Used by Assets.GetAssetPath, Assets.Precache.
| Label | Value | Description |
|---|
AssetType.Map | 2 | |
AssetType.StaticMesh | 4 | |
AssetType.SkeletalMesh | 8 | |
AssetType.Sound | 16 | |
AssetType.Animation | 32 | |
AssetType.Particle | 64 | |
AssetType.Material | 128 | |
AssetType.Blueprint | 256 | |
AssetType.Other | 32768 | |
AttachmentRule
Used by Actor.AttachTo.
| Label | Value | Description |
|---|
AttachmentRule.KeepRelative | 0 | 如果已经附加,将保持当前的相对位置/旋转。 |
AttachmentRule.KeepWorld | 1 | 将计算新的相对位置/旋转,使 Actor 在附加后保持在相同的位置。 |
AttachmentRule.SnapToTarget | 2 | 将 Actor 设为与父 Actor 相同的位置/旋转(或在骨骼位置),并将其相对位置/旋转重置为零。 |
AttenuationFunction
Used by Sound Default Constructor, WebUI.SpawnSound.
| Label | Value | Description |
|---|
AttenuationFunction.Linear | 0 | |
AttenuationFunction.Logarithmic | 1 | |
AttenuationFunction.Inverse | 2 | |
AttenuationFunction.LogReverse | 3 | |
AttenuationFunction.NaturalSound | 4 | |
BlendMode
Used by Canvas.DrawBox, Canvas.DrawLine, Canvas.DrawMaterial, Canvas.DrawMaterialFromSceneCapture, Canvas.DrawMaterialFromWebUI, Canvas.DrawPolygon, Canvas.DrawRect, Canvas.DrawTexture.
| Label | Value | Description |
|---|
BlendMode.Opaque | 0 | |
BlendMode.Masked | 1 | |
BlendMode.Translucent | 2 | |
BlendMode.Additive | 3 | |
BlendMode.Modulate | 4 | |
BlendMode.MaskedDistanceField | 5 | |
BlendMode.MaskedDistanceFieldShadowed | 6 | |
BlendMode.TranslucentDistanceField | 7 | |
BlendMode.TranslucentDistanceFieldShadowed | 8 | |
BlendMode.AlphaComposite | 9 | |
BlendMode.AlphaHoldout | 10 | |
BlendMode.AlphaBlend | 11 | |
BlendMode.TranslucentAlphaOnly | 12 | |
BlendMode.TranslucentAlphaOnlyWriteAlpha | 13 | |
CameraMode
Used by Character.GetCameraMode, Character.SetCameraMode.
| Label | Value | Description |
|---|
CameraMode.FPSTPS | 0 | |
CameraMode.FPSOnly | 1 | |
CameraMode.TPSOnly | 2 | |
CCDMode
Used by Prop Default Constructor.
| Label | Value | Description |
|---|
CCDMode.Auto | 0 | 根据对象大小自动启用/禁用 |
CCDMode.Disabled | 1 | 禁用 CCD |
CCDMode.Enabled | 2 | 启用 CCD |
CollisionChannel
| Label | Value | Description |
|---|
CollisionChannel.WorldStatic | 1 << 0 | WorldStatic 对象类型 |
CollisionChannel.WorldDynamic | 1 << 1 | WorldDynamic 对象类型 |
CollisionChannel.Pawn | 1 << 2 | 碰撞胶囊体(通常来自角色) |
CollisionChannel.PhysicsBody | 1 << 5 | 可拾取物与道具网格体 |
CollisionChannel.Mesh | 1 << 17 | 角色网格体 |
CollisionChannel.Water | 1 << 19 | 水体 |
CollisionChannel.Foliage | 1 << 20 | 植被网格体 |
CollisionChannel.Vehicle | 1 << 22 | 载具网格体 |
CollisionChannel.All | (1 << 23) - 1 | 所有对象 |
CollisionType
Used by Actor.GetCollision, Actor.SetCollision, Blueprint Default Constructor, Character Default Constructor, CharacterSimple Default Constructor, Grenade Default Constructor, InstancedStaticMesh Default Constructor, Melee Default Constructor, Prop Default Constructor, StaticMesh Default Constructor, VehicleWheeled Default Constructor, VehicleWater Default Constructor, Weapon Default Constructor.
| Label | Value | Description |
|---|
CollisionType.Normal | 0 | 阻挡一切 |
CollisionType.StaticOnly | 1 | 仅阻挡静态对象 |
CollisionType.NoCollision | 2 | 皆不阻挡 |
CollisionType.IgnoreOnlyPawn | 3 | 阻挡除 Pawn(角色)以外的一切 |
CollisionType.Auto | 4 | 自动选择 - 通常为 Normal。在道具上,它会根据道具大小在 Normal 和 IgnoreOnlyPawn 之间切换 |
CursorType
Used by Input.SetMouseCursor, Viewport.SetHardwareCursor.
| Label | Value | Description |
|---|
CursorType.None | 0 | |
CursorType.Default | 1 | |
CursorType.TextEditBeam | 2 | |
CursorType.ResizeLeftRight | 3 | |
CursorType.ResizeUpDown | 4 | |
CursorType.ResizeSouthEast | 5 | |
CursorType.ResizeSouthWest | 6 | |
CursorType.CardinalCross | 7 | |
CursorType.Crosshairs | 8 | |
CursorType.Hand | 9 | |
CursorType.GrabHand | 10 | |
CursorType.GrabHandClosed | 11 | |
CursorType.SlashedCircle | 12 | |
CursorType.EyeDropper | 13 | |
ConstraintMotion
Used by Cable.SetAngularLimits, Cable.SetAngularLimits, Cable.SetAngularLimits, Cable.SetLinearLimits, Cable.SetLinearLimits, Cable.SetLinearLimits.
| Label | Value | Description |
|---|
ConstraintMotion.Free | 0 | 绕此轴无约束。 |
ConstraintMotion.Limited | 1 | 绕此轴的自由度受限。每个运动的限制由对应的同名 Limit 属性独立控制。 |
ConstraintMotion.Locked | 2 | 绕此轴完全约束 |
DamageType
Used by Damageable.ApplyDamage, Damageable Death Event, Damageable TakeDamage Event, Prop TakeDamage Event.
| Label | Value | Description |
|---|
DamageType.Shot | 0 | |
DamageType.Explosion | 1 | |
DamageType.Punch | 2 | |
DamageType.Fall | 3 | |
DamageType.RunOverProp | 4 | |
DamageType.RunOverVehicle | 5 | |
DamageType.Melee | 6 | |
DamageType.Unknown | 7 | |
DatabaseEngine
Used by Database Default Constructor.
| Label | Value | Description |
|---|
DatabaseEngine.SQLite | 0 | |
DatabaseEngine.MySQL | 1 | |
DatabaseEngine.PostgreSQL | 2 | |
DifferentialType
Used by VehicleWheeled.SetDifferentialSetup.
| Label | Value | Description |
|---|
DifferentialType.Undefined | 0 | |
DifferentialType.AllWheelDrive | 1 | |
DifferentialType.FrontWheelDrive | 2 | |
DifferentialType.RearWheelDrive | 3 | |
FallingMode
Used by Character.GetFallingMode, Character FallingModeChange Event, Character FallingModeChange Event.
| Label | Value | Description |
|---|
FallingMode.None | 0 | |
FallingMode.Jumping | 1 | |
FallingMode.Climbing | 2 | |
FallingMode.Vaulting | 3 | |
FallingMode.Falling | 4 | |
FallingMode.HighFalling | 5 | |
FallingMode.Parachuting | 6 | |
FallingMode.SkyDiving | 7 | |
FontType
Used by Canvas.DrawText, Text3D.SetFont, Text3D Default Constructor.
| Label | Value | Description |
|---|
FontType.Roboto | 0 | |
FontType.GothicA1 | 1 | |
FontType.PoiretOne | 2 | |
FontType.Oswald | 3 | |
FontType.RobotoMono | 4 | |
FontType.OpenSans | 5 | |
GaitMode
Used by Character.GetGaitMode, Character.SetGaitMode, Character GaitModeChange Event, Character GaitModeChange Event.
| Label | Value | Description |
|---|
GaitMode.None | 0 | |
GaitMode.Walking | 1 | |
GaitMode.Sprinting | 2 | |
Used by Gizmo.SetTransformMode.
| Label | Value | Description |
|---|
GizmoTransformMode.Translation | 0 | |
GizmoTransformMode.Rotation | 1 | |
GizmoTransformMode.Scale | 2 | |
GizmoAlignSpace
Used by Gizmo.SetAlignSpace.
| Label | Value | Description |
|---|
GizmoAlignSpace.Local | 0 | |
GizmoAlignSpace.World | 1 | |
GrabMode
Used by Prop.GetGrabMode, Prop.SetGrabMode, Prop Default Constructor.
| Label | Value | Description |
|---|
GrabMode.Disabled | 0 | 禁用抓取 |
GrabMode.Auto | 1 | 根据道具大小自动启用/禁用 |
GrabMode.Enabled | 2 | 启用抓取 |
HandlingMode
Used by Pickable.GetHandlingMode, Melee Default Constructor, Weapon.GetHandlingMode, Weapon.SetHandlingMode.
| Label | Value | Description |
|---|
HandlingMode.SingleHandedWeapon | 0 | |
HandlingMode.DoubleHandedWeapon | 1 | |
HandlingMode.SingleHandedMelee | 2 | |
HandlingMode.DoubleHandedMelee | 3 | |
HandlingMode.Throwable | 4 | |
HandlingMode.Torch | 5 | |
HandlingMode.Barrel | 6 | |
HandlingMode.Box | 7 | |
HighlightMode
Used by Client.SetHighlightColor.
| Label | Value | Description |
|---|
HighlightMode.Always | 0 | |
HighlightMode.OnlyHidden | 1 | |
HighlightMode.OnlyVisible | 2 | |
HTTPMethod
HTTP 定义了一组请求方法,用以指示针对给定资源要执行的期望操作。欲了解更多信息,请在此进一步阅读。
Used by HTTP.Request, HTTP.RequestAsync.
| Label | Value | Description |
|---|
HTTPMethod.GET | 0 | GET 方法请求特定资源的表示形式。使用 GET 的请求应该只用于检索数据。 |
HTTPMethod.POST | 1 | POST 方法将实体提交给指定的资源,通常会导致服务器上的状态更改或副作用。 |
HTTPMethod.PUT | 2 | PUT 方法用请求有效负载替换目标资源的所有当前表示形式。 |
HTTPMethod.HEAD | 3 | HEAD 方法要求一个与 GET 请求相同的响应,但没有响应体。 |
HTTPMethod.DELETE | 4 | DELETE 方法删除指定的资源。 |
HTTPMethod.PATCH | 5 | PATCH 方法对资源应用部分修改。 |
HTTPMethod.OPTIONS | 6 | OPTIONS 方法描述目标资源的通信选项。 |
Used by SceneCapture.EncodeToBase64, SceneCapture.EncodeToBase64Async.
| Label | Value | Description |
|---|
ImageFormat.JPEG | 0 | |
ImageFormat.PNG | 1 | |
ImageFormat.BMP | 2 | |
Used by Input.Bind, Input.InputKey, Input.Unbind.
| Label | Value | Description |
|---|
InputEvent.Pressed | 0 | |
InputEvent.Released | 1 | |
KeyboardLayout
Used by Input.GetKeyboardLayout.
| Label | Value | Description |
|---|
KeyboardLayout.Unknown | 0 | |
KeyboardLayout.QWERTY | 1 | |
KeyboardLayout.AZERTY | 2 | |
KeyboardLayout.QWERTZ | 3 | |
KeyModifier
Used by Input.GetModifierKeys.
| Label | Value | Description |
|---|
KeyModifier.None | 0 | |
KeyModifier.LeftShiftDown | 1 << 0 | |
KeyModifier.RightShiftDown | 1 << 1 | |
KeyModifier.LeftControlDown | 1 << 2 | |
KeyModifier.RightControlDown | 1 << 3 | |
KeyModifier.LeftAltDown | 1 << 4 | |
KeyModifier.RightAltDown | 1 << 5 | |
KeyModifier.LeftCommandDown | 1 << 6 | |
KeyModifier.RightCommandDown | 1 << 7 | |
KeyModifier.CapsLocked | 1 << 8 | |
LightProfile
Used by Light.SetTextureLightProfile.
| Label | Value | Description |
|---|
LightProfile.None | 0 | |
LightProfile.Arrow_Star | 1 | |
LightProfile.Arrow_Up | 2 | |
LightProfile.Beam_01 | 3 | |
LightProfile.Beam_02 | 4 | |
LightProfile.Beam_03 | 5 | |
LightProfile.Beam_04 | 6 | |
LightProfile.Beam_05 | 7 | |
LightProfile.Beam_06 | 8 | |
LightProfile.Beam_07 | 9 | |
LightProfile.Beam_08 | 10 | |
LightProfile.Beam_LED_01 | 11 | |
LightProfile.Beam_LED_02 | 12 | |
LightProfile.Beam_LED_03 | 13 | |
LightProfile.Beam_LED_04 | 14 | |
LightProfile.Beam_LED_05 | 15 | |
LightProfile.Beam_LED_06 | 16 | |
LightProfile.Beam_LED_07 | 17 | |
LightProfile.Bow | 18 | |
LightProfile.Capped_01 | 19 | |
LightProfile.Capped_02 | 20 | |
LightProfile.Shattered_01 | 21 | |
LightProfile.Shattered_02 | 22 | |
LightProfile.Shattered_03 | 23 | |
LightProfile.Shattered_04 | 24 | |
LightProfile.Shattered_05 | 25 | |
LightProfile.SpotLight_01 | 26 | |
LightProfile.SpotLight_02 | 27 | |
LightProfile.SpotLight_03 | 28 | |
LightProfile.SpotLight_04 | 29 | |
LightProfile.Spreadout_01 | 30 | |
LightProfile.Spreadout_02 | 31 | |
LightProfile.Spreadout_03 | 32 | |
LightProfile.Spreadout_04 | 33 | |
LightProfile.Star_Bow | 34 | |
LightProfile.Star_Burst_01 | 35 | |
LightProfile.Star_Burst_02 | 36 | |
LightProfile.Star_Burst_03 | 37 | |
LightProfile.Star_Burst_04 | 38 | |
LightProfile.Star_Burst_05 | 39 | |
LightProfile.Star_Burst_06 | 40 | |
LightProfile.Star_Burst_07 | 41 | |
LightProfile.Star_Burst_08 | 42 | |
LightProfile.Star_X_01 | 43 | |
LightProfile.Star_X_02 | 44 | |
LightProfile.Wall_Boomerang | 45 | |
LightProfile.Wall_Inverted_V | 46 | |
LightProfile.Wall_Star_T | 47 | |
LightProfile.Wing_6 | 48 | |
LightProfile.Wing_V_01 | 49 | |
LightProfile.Wing_V_02 | 50 | |
LogType
Used by Console LogEntry Event.
| Label | Value | Description |
|---|
LogType.Display | 0 | |
LogType.Warning | 1 | |
LogType.Error | 2 | |
LogType.Debug | 3 | |
LogType.Verbose | 4 | |
LogType.Scripting | 5 | |
LogType.ScriptingWarn | 6 | |
LogType.ScriptingError | 7 | |
LogType.Chat | 8 | |
LogType.WebUI | 9 | |
LogType.Success | 10 | |
LogType.Fatal | 11 | |
LightType
Used by Light Default Constructor.
| Label | Value | Description |
|---|
LightType.Point | 0 | |
LightType.Spot | 1 | |
LightType.Rect | 2 | |
Used by Widget Native Widget Constructor.
| Label | Value | Description |
|---|
NativeWidget.Border | 0 | |
NativeWidget.Button | 1 | |
NativeWidget.CheckBox | 2 | |
NativeWidget.Image | 3 | |
NativeWidget.ProgressBar | 4 | |
NativeWidget.RichTextBlock | 5 | |
NativeWidget.Slider | 6 | |
NativeWidget.Text | 7 | |
NativeWidget.ComboBox | 8 | |
NativeWidget.EditableText | 9 | |
NativeWidget.EditableTextMultiLine | 10 | |
NativeWidget.SpinBox | 11 | |
NativeWidget.TextBox | 12 | |
NativeWidget.TextBoxMultiLine | 13 | |
NativeWidget.CanvasPanel | 14 | |
NativeWidget.GridPanel | 15 | |
NativeWidget.HorizontalBox | 16 | |
NativeWidget.Overlay | 17 | |
NativeWidget.ScaleBox | 18 | |
NativeWidget.ScrollBox | 19 | |
NativeWidget.SizeBox | 20 | |
NativeWidget.UniformGridPanel | 21 | |
NativeWidget.VerticalBox | 22 | |
NativeWidget.WrapBox | 23 | |
NativeWidget.BackgroundBlur | 24 | |
NotificationType
Used by Client.ShowNotification.
| Label | Value | Description |
|---|
NotificationType.Info | 0 | |
NotificationType.Warning | 1 | |
NotificationType.Error | 2 | |
NotificationType.Fatal | 3 | |
NotificationType.Success | 4 | |
PackageType
Used by Client.GetPackages, Server.GetPackages.
| Label | Value | Description |
|---|
PackageType.Script | 1 | |
PackageType.GameMode | 2 | |
PackageType.LoadingScreen | 4 | |
PackageType.Map | 16 | |
PackageType.CModule | 32 | |
PackageType.All | -1 | |
Reliability
Used by Entity.BroadcastRemoteEvent, Entity.BroadcastRemoteInRadiusEvent, Entity.CallRemoteEvent, Entity.CallRemoteEvent, Entity.CallRemotePlayersEvent, Events.BroadcastRemote, Events.BroadcastRemoteDimension, Events.BroadcastRemoteInRadius, Events.BroadcastRemoteInRadiusDimension, Events.CallRemote, Events.CallRemote, Events.CallRemotePlayers.
| Label | Value | Description |
|---|
Reliability.Unreliable | 0 | 以不可靠的方式发送消息,消息可能会丢失(无重传机制)或接收顺序与发送顺序不一致。但相比可靠传输,其开销更小、速度更快。适用于发送对游戏玩法不关键的短暂且非核心的事件 |
Reliability.Reliable | 1 | 以可靠的方式发送消息,保证消息能够按顺序发送和接收,但开销比不可靠传输更大。当你想确保事件一定能被对方接收到时使用此方式 |
SkyMode
Used by Sky.SetSkyMode.
| Label | Value | Description |
|---|
SkyMode.VolumetricClouds | 0 | 使用 3D 体积云层 |
SkyMode.StaticClouds | 1 | 旨在模拟体积云的外观,但采用静态云贴图。性能开销远低于体积云。 |
SkyMode.DynamicClouds2D | 2 | 使用简单的 2D 动态云 |
SkyMode.NoClouds | 3 | 禁用所有形式的动态云 |
SkyMode.VolumetricAurora | 4 | 将云替换为全 3D 体积极光,比 2D 效果更逼真。 |
SkyMode.Space | 5 | 关闭所有天空颜色、大气散射、云层等。专门用于设置在外太空中、且相机下方没有行星/地面的环境。 |
SoundType
Used by Sound.GetSoundType, Sound Default Constructor.
| Label | Value | Description |
|---|
SoundType.SFX | 0 | |
SoundType.Music | 1 | |
SoundType.UI | 2 | |
SoundType.Ambient | 3 | |
SoundLoopMode
Used by Sound Default Constructor.
| Label | Value | Description |
|---|
SoundLoopMode.Default | 0 | 资产中定义的默认值 |
SoundLoopMode.Forever | 1 | 覆盖资产设置,使其无限循环 |
SoundLoopMode.Never | 2 | 覆盖资产设置,使其仅播放一次 |
StanceMode
Used by Character.GetStanceMode, Character.SetStanceMode, Character StanceModeChange Event, Character StanceModeChange Event.
| Label | Value | Description |
|---|
StanceMode.None | 0 | |
StanceMode.Standing | 1 | |
StanceMode.Crouching | 2 | |
StanceMode.Proning | 3 | |
SteeringType
Used by VehicleWheeled.SetSteeringSetup.
| Label | Value | Description |
|---|
SteeringType.SingleAngle | 0 | 两侧车轮的转向角度相同 |
SteeringType.AngleRatio | 1 | 转弯时外侧车轮的转向角度按设定比例小于内侧车轮 |
SteeringType.Ackermann | 2 | 应用阿克曼转向原理 |
SurfaceType
Used by Melee.SetImpactSound.
| Label | Value | Description |
|---|
SurfaceType.Default | 0 | |
SurfaceType.Carpet | 1 | |
SurfaceType.Concrete | 2 | |
SurfaceType.Grass | 3 | |
SurfaceType.Gravel | 4 | |
SurfaceType.Ground | 5 | |
SurfaceType.MetalLight | 6 | |
SurfaceType.Plastic | 7 | |
SurfaceType.Sand | 8 | |
SurfaceType.Snow | 9 | |
SurfaceType.Water | 10 | |
SurfaceType.WoodLight | 11 | |
SurfaceType.Flesh | 12 | |
SurfaceType.MetalHeavy | 13 | |
SurfaceType.WoodHeavy | 14 | |
SurfaceType.Ice | 15 | |
SurfaceType.Mud | 16 | |
SurfaceType.Rock | 17 | |
SurfaceType.Thump | 18 | |
SurfaceType.Glass | 19 | |
SurfaceType.Rubber | 20 | |
SurfaceType.Air | 21 | |
SuspensionSweepShape
Used by VehicleWheeled.SetWheel.
| Label | Value | Description |
|---|
SuspensionSweepShape.Raycast | 0 | 使用射线测定悬挂至地面的长度 - 最快 |
SuspensionSweepShape.Spherecast | 1 | 使用球体测定悬挂至地面的长度 |
SuspensionSweepShape.Shapecast | 2 | 使用车轮碰撞形状测定悬挂至地面的长度 - 最慢 |
SwimmingMode
Used by Character.GetSwimmingMode, Character SwimmingModeChange Event, Character SwimmingModeChange Event.
| Label | Value | Description |
|---|
SwimmingMode.None | 0 | |
SwimmingMode.Surface | 1 | |
SwimmingMode.Underwater | 2 | |
TextRenderAlignCamera
| Label | Value | Description |
|---|
TextRenderAlignCamera.Unaligned | 0 | |
TextRenderAlignCamera.AlignCameraRotation | 1 | |
TextRenderAlignCamera.FaceCamera | 2 | |
TextRenderBevelType
| Label | Value | Description |
|---|
TextRenderBevelType.Linear | 0 | |
TextRenderBevelType.HalfCircle | 1 | |
TextRenderBevelType.Convex | 2 | |
TextRenderBevelType.Concave | 3 | |
TextRenderBevelType.OneStep | 4 | |
TextRenderBevelType.TwoSteps | 5 | |
TextRenderBevelType.Engraved | 6 | |
TextRenderHorizontalAlignment
Used by TextRender.SetAlignment, TextRender Default Constructor.
| Label | Value | Description |
|---|
TextRenderHorizontalAlignment.Left | 0 | |
TextRenderHorizontalAlignment.Center | 1 | |
TextRenderHorizontalAlignment.Right | 2 | |
TextRenderRenderingType
Used by TextRender Default Constructor.
| Label | Value | Description |
|---|
TextRenderRenderingType.Lit | 0 | |
TextRenderRenderingType.Unlit | 1 | |
TextRenderRenderingType.UnlitCameraAligned | 2 | |
TextRenderRenderingType.UnlitCameraAlignedDepth | 3 | |
TextRenderVerticalAlignment
Used by TextRender.SetAlignment, TextRender Default Constructor.
| Label | Value | Description |
|---|
TextRenderVerticalAlignment.Top | 0 | |
TextRenderVerticalAlignment.Center | 1 | |
TextRenderVerticalAlignment.Bottom | 2 | |
TextRenderVerticalAlignment.QuadTop | 3 | |
TriggerType
Used by Trigger Default Constructor.
| Label | Value | Description |
|---|
TriggerType.Sphere | 0 | |
TriggerType.Box | 1 | |
TraceMode
| Label | Value | Description |
|---|
TraceMode.DrawDebug | 1 << 0 | 是否绘制代表射线的 3D 线条 |
TraceMode.TraceComplex | 1 << 1 | 是否应对复杂碰撞进行追踪 |
TraceMode.ReturnPhysicalMaterial | 1 << 2 | 是否要在结果中包含物理材质(将 SurfaceType 添加到结果中) |
TraceMode.ReturnEntity | 1 << 3 | 是否要返回命中的实体(将 Entity 添加到结果中) |
TraceMode.ReturnNames | 1 << 4 | 是否应该返回名称(将 ActorName、ComponentName 和 BoneName 添加到结果中) |
TraceMode.ReturnUV | 1 << 5 | 是否要追踪并返回 UV 信息(将 UV 添加到结果中) |
TraceMode.TraceOnlyVisibility | 1 << 6 | 是否只对未忽略可见性碰撞通道的对象进行追踪 |
TraceMode.ReturnItem | 1 << 7 | 是否应该返回关于被命中物品的额外数据(特定于命中图元 - 通常是实例索引)(将 Item 添加到结果中) |
ViewMode
Used by Character.GetViewMode, Character.SetViewMode, Character ViewModeChange Event, Character ViewModeChange Event.
| Label | Value | Description |
|---|
ViewMode.FPS | 0 | 第一人称视角 |
ViewMode.TPS1 | 1 | 第三人称近距离视角 |
ViewMode.TPS2 | 2 | 第三人称中距离视角 |
ViewMode.TPS3 | 3 | 第三人称远距离视角 |
ViewMode.TopDown | 4 | 俯视视角 |
VOIPSetting
Used by Player.SetVOIPGlobalAllChannelsSetting, Player.SetVOIPGlobalChannelSetting, Player.SetVOIPLocalSetting, Player VOIPGlobalChannelSettingChange Event, Player VOIPGlobalChannelSettingChange Event, Player VOIPLocalSettingChange Event, Player VOIPLocalSettingChange Event.
| Label | Value | Description |
|---|
VOIPSetting.None | 0 | |
VOIPSetting.ListenOnly | 1 | |
VOIPSetting.SpeakOnly | 2 | |
VOIPSetting.Both | 3 | |
WeatherType
Used by Sky.ChangeWeather, Sky.GetWeather.
| Label | Value | Description |
|---|
WeatherType.ClearSkies | 1 | |
WeatherType.Cloudy | 2 | |
WeatherType.Foggy | 3 | |
WeatherType.Overcast | 4 | |
WeatherType.PartlyCloudy | 5 | |
WeatherType.Rain | 6 | |
WeatherType.RainLight | 7 | |
WeatherType.RainThunderstorm | 8 | |
WeatherType.SandDustCalm | 9 | |
WeatherType.SandDustStorm | 10 | |
WeatherType.Snow | 11 | |
WeatherType.SnowBlizzard | 12 | |
WeatherType.SnowLight | 13 | |
WebUIModifier
Used by WebUI.SendKeyEvent, WebUI.SendMouseClickEvent, WebUI.SendMouseMoveEvent.
| Label | Value | Description |
|---|
WebUIModifier.None | 0 | |
WebUIModifier.CapsLockOn | 1 << 0 | |
WebUIModifier.ShiftDown | 1 << 1 | |
WebUIModifier.ControlDown | 1 << 2 | |
WebUIModifier.AltDown | 1 << 3 | |
WebUIModifier.LeftMouseButton | 1 << 4 | |
WebUIModifier.MiddleMouseButton | 1 << 5 | |
WebUIModifier.RightMouseButton | 1 << 6 | |
WebUIModifier.CommandDown | 1 << 7 | |
WebUIModifier.NumLockOn | 1 << 8 | |
WebUIModifier.IsKeyPad | 1 << 9 | |
WebUIModifier.IsLeft | 1 << 10 | |
WebUIModifier.IsRight | 1 << 11 | |
WebUIModifier.AltgrDown | 1 << 12 | |
WebUIModifier.IsRepeat | 1 << 13 | |
WebUIKeyType
Used by WebUI.SendKeyEvent.
| Label | Value | Description |
|---|
WebUIKeyType.Down | 0 | |
WebUIKeyType.Up | 1 | |
WebUIKeyType.Char | 2 | |
WebUIMouseType
Used by WebUI.SendMouseClickEvent.
| Label | Value | Description |
|---|
WebUIMouseType.Left | 0 | |
WebUIMouseType.Right | 1 | |
WebUIMouseType.Middle | 2 | |
Used by Widget.SetSlotAlignment, Viewport.SetBrandingBarSettings.
| Label | Value | Description |
|---|
WidgetHorizontalAlignment.Fill | 0 | |
WidgetHorizontalAlignment.Left | 1 | |
WidgetHorizontalAlignment.Center | 2 | |
WidgetHorizontalAlignment.Right | 3 | |
Used by Widget.SetSlotAlignment, Viewport.SetBrandingBarSettings.
| Label | Value | Description |
|---|
WidgetVerticalAlignment.Fill | 0 | |
WidgetVerticalAlignment.Top | 1 | |
WidgetVerticalAlignment.Center | 2 | |
WidgetVerticalAlignment.Bottom | 3 | |
Used by WebUI.GetVisibility, WebUI.SetVisibility, WebUI Default Constructor, Widget.GetVisibility, Widget.SetVisibility.
| Label | Value | Description |
|---|
WidgetVisibility.Hidden | 0 | |
WidgetVisibility.Visible | 1 | |
WidgetVisibility.VisibleNotHitTestable | 2 | |
Used by Widget.SetSlotSize.
| Label | Value | Description |
|---|
WidgetSizeRule.Automatic | 0 | |
WidgetSizeRule.Fill | 1 | |
Used by Widget.SpawnWidget3D.
| Label | Value | Description |
|---|
WidgetSpace.World | 0 | 控件在世界中被渲染为网格体,它可以像世界中的任何其他网格体一样被遮挡 |
WidgetSpace.Screen | 1 | 控件在屏幕上渲染,完全独立于世界之外,绝不会被遮挡 |