1
0
KF2-Dev-Scripts/Engine/Classes/ParticleModuleSize.uc

41 lines
1.3 KiB
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
/**
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
*/
class ParticleModuleSize extends ParticleModuleSizeBase
native(Particle)
editinlinenew
hidecategories(Object);
/**
* The initial size that should be used for a particle.
* The value is retrieved using the EmitterTime during the spawn of a particle.
* It is added to the Size and BaseSize fields of the spawning particle.
*/
var(Size) rawdistributionvector StartSize;
cpptext
{
virtual void Spawn(FParticleEmitterInstance* Owner, INT Offset, FLOAT SpawnTime);
/**
* Extended version of spawn, allows for using a random stream for distribution value retrieval
*
* @param Owner The particle emitter instance that is spawning
* @param Offset The offset to the modules payload data
* @param SpawnTime The time of the spawn
* @param InRandomStream The random stream to use for retrieving random values
*/
void SpawnEx(FParticleEmitterInstance* Owner, INT Offset, FLOAT SpawnTime, class FRandomStream* InRandomStream);
}
defaultproperties
{
bSpawnModule=true
bUpdateModule=false
Begin Object Class=DistributionVectorUniform Name=DistributionStartSize
Min=(X=1,Y=1,Z=1)
Max=(X=1,Y=1,Z=1)
End Object
StartSize=(Distribution=DistributionStartSize)
}