|
I am trying out the evaluation version of Substance Designer which is BRILLIANT, however one thing I am finding odd is that I have a prefab and anywhere from 0-5 instances of it within the scene, however I want each one to look slightly different, so I was planning to just tweak the exposed random seed for each instance however nothing seems to happen. I am currently using: instanceGameObject is within a loop so will be an instance of each game object of that prefab. Anyway they all look the same as if either ALL of them have changed or none of them have. Am I doing something wrong?
(comments are locked)
|
|
After debugging all the possible values at runtime using This works! That will do it if you have the right param name! Yeh but if you do experience random seed issues on same frame that happens alot in games. Glad you solved it.
Aug 05 '12 at 03:34 AM
drawcode
(comments are locked)
|
|
Random.Range(0,30) will return the same value in the same frame/tick. So you can put this in a coroutine and lag a bit by waiting for ms.. or end of frame. OR better Set the seed at each iteration http://docs.unity3d.com/Documentation/ScriptReference/Random-seed.html
(comments are locked)
|
|
I dont think that the random element is really the issue, as before now I have set the random seed to just be (Although it is interesting to know the limitations on range, I am seeding it using the itteration count, still have the issue)
(comments are locked)
|
