Breakroom is now Sinewave Campus. Book a meeting

SPostProcessVolume

العميلالمكونات
في هذا الصنفEnabled
  1. الخصائص
  2. Enabled
  3. IsGlobal
  4. BlendDistance
  5. Weight
  6. Priority
  7. GameObject
الأعضاء 6
خاصيةEnabledEnable or disable post effect volume.
خاصيةIsGlobalShould this volume be applied to the whole scene?
خاصيةBlendDistanceThe outer distance to start blending from.
خاصيةWeightThe total weight of this volume in the scene. 0 means it won't do anything, 1 means full effect.
خاصيةPriorityThe volume priority in the stack.
خاصيةGameObject–

الخصائص​

Enabled​

bool Enabled {get; set; }

Enable or disable post effect volume.

مثال

Lua
Space.Host.ExecutingObject.PostProcessVolume.Enabled = true
Lua
--clicking this object will Enable/Disable it's Post Process Volume component
thisGameObject = Space.Host.ExecutingObject
component = thisGameObject.PostProcessVolume

OnClick = function()
component.Enabled = not component.Enabled
end


thisGameObject.AddClickable()
thisGameObject.Clickable.OnClick(OnClick)

IsGlobal​

bool IsGlobal {get; set; }

Should this volume be applied to the whole scene?

مثال

Lua
Space.Host.ExecutingObject.PostProcessVolume.IsGlobal = true

BlendDistance​

float? BlendDistance {get; set; }

The outer distance to start blending from. A value of 0 means no blending and the volume overrides will be applied immediately upon entry.

مثال

Lua
Space.Host.ExecutingObject.PostProcessVolume.BlendDistance = 0

Weight​

float?? Weight {get; set; }

The total weight of this volume in the scene. 0 means it won't do anything, 1 means full effect.

مثال

Lua
Space.Host.ExecutingObject.PostProcessVolume.Weight = 1

Priority​

float Priority {get; set; }

The volume priority in the stack. Higher number means higher priority. Negative values are supported.

مثال

Lua
Space.Host.ExecutingObject.PostProcessVolume.Priority = 100

GameObjectللقراءة فقط​

SGameObject GameObject {get; }

مثال

Lua
theGameObject = Space.Host.ExecutingObject.PostProcessVolume.GameObject