#I can't drag the particle system(water particles) to the variable

1 messages · Page 1 of 1 (latest)

glossy hemlock
#

How could I fix this?
This is my code:

using UnityEngine;


[CreateAssetMenu(fileName = "Magic", menuName = "Magic Settings")]
public class MagicType : ScriptableObject
{

    public string MagicName;

    [Space]
    [Range(0.6f, 1.5f)]
    public float MagicDamage;

    [Range(0.6f, 1.5f)]
    public float MagicSize;

    [Range(0.6f, 1.5f)]
    public float MagicSpeed;

    [Space]
    public ParticleSystem MagicParticle;

    public string StatusInflicted;
}
wide crystal
#

You cannot drag scene elements to things outside of the scene

glossy hemlock
wide crystal
#

as it is not guaranteed the scene is loaded at all times

#

do you want to spawn the particles everytime the water spell is cast for example?

#

then make a prefab out of your scene element and use that

#

(drag it from scene to project)

sullen summit
#

lmao i once also confused about this. u should make a prefab if u wanna use it at any time

glossy hemlock
wide crystal
#

yes

glossy hemlock
#

thanks guys

wide crystal
#

when you drag a scene element to the project you create a reusable prefab which is basically a template you can put anywhere else to be created

glossy hemlock
wide crystal
#

you can lock on the top right

#

while you are on the water magic

#

or you open water magic and then use the search bar, that will not switch the inspector if you just drag the particles

glossy hemlock
#

Thanks that's all

#

Have a nice day

wide crystal
#

you too