Breakroom is now Sinewave Campus. Book a meeting

SAudioReactiveParticleSystem

客户端组件
在此类中Enabled
  1. 属性
  2. Enabled
  3. Target
  4. Position
  5. MinPosition
  6. MaxPosition
  7. Rotation
  8. MinRotation
  9. MaxRotation
  10. Scale
  11. MinScale
  12. MaxScale
  13. GameObject
成员 12
属性Enabled–
属性Target–
属性Position–
属性MinPosition–
属性MaxPosition–
属性Rotation–
属性MinRotation–
属性MaxRotation–
属性Scale–
属性MinScale–
属性MaxScale–
属性GameObjectReturns a reference to the GameObject of this component.

属性​

Enabled​

bool Enabled {get; set; }

示例

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; }

示例

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

Position​

bool Position {get; set; }

示例

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

MinPosition​

SVector MinPosition {get; set; }

示例

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

MaxPosition​

SVector MaxPosition {get; set; }

示例

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

Rotation​

bool Rotation {get; set; }

示例

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

MinRotation​

SVector MinRotation {get; set; }

示例

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

MaxRotation​

SVector MaxRotation {get; set; }

示例

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

Scale​

bool Scale {get; set; }

示例

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

MinScale​

SVector MinScale {get; set; }

示例

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

MaxScale​

SVector MaxScale {get; set; }

示例

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

GameObject只读​

SGameObject GameObject {get; }

Returns a reference to the GameObject of this component.

示例

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