63 lines
2.0 KiB
Ucode
63 lines
2.0 KiB
Ucode
/**
|
|
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
|
|
*/
|
|
class ParticleModuleSizeMultiplyLife extends ParticleModuleSizeBase
|
|
native(Particle)
|
|
editinlinenew
|
|
hidecategories(Object);
|
|
|
|
/**
|
|
* The scale factor for the size that should be used for a particle.
|
|
* The value is retrieved using the RelativeTime of the particle during its update.
|
|
*/
|
|
var(Size) rawdistributionvector LifeMultiplier;
|
|
/**
|
|
* If true, the X-component of the scale factor will be applied to the particle size X-component.
|
|
* If false, the X-component is left unaltered.
|
|
*/
|
|
var(Size) bool MultiplyX;
|
|
/**
|
|
* If true, the Y-component of the scale factor will be applied to the particle size Y-component.
|
|
* If false, the Y-component is left unaltered.
|
|
*/
|
|
var(Size) bool MultiplyY;
|
|
/**
|
|
* If true, the Z-component of the scale factor will be applied to the particle size Z-component.
|
|
* If false, the Z-component is left unaltered.
|
|
*/
|
|
var(Size) bool MultiplyZ;
|
|
|
|
cpptext
|
|
{
|
|
virtual void Spawn(FParticleEmitterInstance* Owner, INT Offset, FLOAT SpawnTime);
|
|
virtual void Update(FParticleEmitterInstance* Owner, INT Offset, FLOAT DeltaTime);
|
|
/**
|
|
* Called when the module is created, this function allows for setting values that make
|
|
* sense for the type of emitter they are being used in.
|
|
*
|
|
* @param Owner The UParticleEmitter that the module is being added to.
|
|
*/
|
|
virtual void SetToSensibleDefaults(UParticleEmitter* Owner);
|
|
/**
|
|
* Returns whether the module is SizeMultipleLife or not.
|
|
*
|
|
* @return UBOOL TRUE if the module is a UParticleModuleSizeMultipleLife
|
|
* FALSE if not
|
|
*/
|
|
virtual UBOOL IsSizeMultiplyLife() { return TRUE; };
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
bSpawnModule=true
|
|
bUpdateModule=true
|
|
|
|
MultiplyX=true
|
|
MultiplyY=true
|
|
MultiplyZ=true
|
|
|
|
Begin Object Class=DistributionVectorConstant Name=DistributionLifeMultiplier
|
|
End Object
|
|
LifeMultiplier=(Distribution=DistributionLifeMultiplier)
|
|
}
|