|
Hey, I'm trying to build an editor script that will help me with placing lightprobes. But I cannot find how to add the probes to a lightprobegroup from script. Does anyone know how to do this? Or any help as to where I can find the answer? Thanks! Vin Update: I see now that LightProbeGroup.probePositions = just a vector3 array that can be sized how you want. Below is my script so far. The problem is that the lightprobes positions reset to 0 0 0 If I log the values right after I set them they log correctly. But if I log them afterwards, they are back at 0 0 0 I've tried to use editorUtility.setDirty on lpGrp but that doesn't help. Anyone now how to stop it from resetting? Thanks! Update 2: Support suggested that I first create a new array and then replace the probepositions with that. But that also does not work. Any ideas?
(comments are locked)
|
|
Hey, It seems that you cannot use the built in array's with the lightprobes... Here is a functional script: Hope it helps someone else! cheers!
(comments are locked)
|
