12 if (!cameraParticlesManager)
return null;
16 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
19 if (!cameraParticlesManager)
return;
21 if (var) cameraParticlesManager.SetCurrentEffect(var.GetInt());
23 override void PreviewVariable(
bool setPreview, SCR_AttributesManagerEditorComponent manager)
25 WriteVariable(
null, GetVariable(), manager, -1);
27 override int GetEntries(notnull array<ref SCR_BaseEditorAttributeEntry> outEntries)
32 if (!cameraParticlesManager)
return 0;
34 array<SCR_CameraParticleEditor> effects =
new array<SCR_CameraParticleEditor>;
35 int effectsCount = cameraParticlesManager.GetEffects(effects);
36 if (effectsCount == 0)
return 0;
38 for (
int i = 0; i < effectsCount; i++)