Breakroom is now Sinewave Campus. Book a meeting

SAudioReactiveParticleSystem

ClientComponents
On this classEnabled
  1. Properties
  2. Enabled
  3. Target
  4. Position
  5. MinPosition
  6. MaxPosition
  7. Rotation
  8. MinRotation
  9. MaxRotation
  10. Scale
  11. MinScale
  12. MaxScale
  13. GameObject
Members 12
PropertyEnabled–
PropertyTarget–
PropertyPosition–
PropertyMinPosition–
PropertyMaxPosition–
PropertyRotation–
PropertyMinRotation–
PropertyMaxRotation–
PropertyScale–
PropertyMinScale–
PropertyMaxScale–
PropertyGameObjectReturns a reference to the GameObject of this component.

Properties​

Enabled​

bool Enabled {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveParticleSystem.Enabled = true
Lua
--clicking this object will Enable/Disable it's Audio Reactive Particle System component
thisGameObject = Space.Host.ExecutingObject
component = thisGameObject.AudioReactiveParticleSystem


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


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

Target​

SGameObject Target {get; set; }

Example

Lua
targetGameObject = Space.Host.ExecutingObject.AudioReactiveParticleSystem.Target

Position​

bool Position {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveParticleSystem.Position = true

MinPosition​

SVector MinPosition {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveParticleSystem.MinPosition = Vector.New(0,0,0)

MaxPosition​

SVector MaxPosition {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveParticleSystem.MaxPosition = Vector.New(10,10,10)

Rotation​

bool Rotation {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveParticleSystem.Rotation = true

MinRotation​

SVector MinRotation {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveParticleSystem.MinRotation = Vector.New(0,0,0)

MaxRotation​

SVector MaxRotation {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveParticleSystem.MaxRotation = Vector.New(10,10,10)

Scale​

bool Scale {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveParticleSystem.Scale = true

MinScale​

SVector MinScale {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveParticleSystem.MinScale = Vector.New(1,1,1)

MaxScale​

SVector MaxScale {get; set; }

Example

Lua
Space.Host.ExecutingObject.AudioReactiveParticleSystem.MaxScale = Vector.New(1.2,1.2,1.2)

GameObjectRead only​

SGameObject GameObject {get; }

Returns a reference to the GameObject of this component.

Example

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