Wednesday, February 24, 2016

Headaches and tips - Grass, Lights, Cloth, Prefab


Grass Not Rendered in Scene or/and Editor View????
In Terrain component, "Settings" you can see Detail Distance is default 80 and max is 250 meaning if your camera is further then 250 nothing will be rendered.




Light NOT RENDERED????
Render mode is set to "Auto" so Unity decides what to render. Set Important force to be rendered.




Cloth (extremities go out of the cloth)????
Create pair of empty game objects with the Sphere colliders and position then in pairs along the bone. Increase the radius of Sphere until extremities not go out. Make also cut in cloth if not enough.

Revert Value to Prefab not working on ur custom components????
Use EditorGUI.BeginProperty(...) [ur custom GUI code here] EditorGUILayout.EndProperty()


Reserve space when developing with EditorGUILayout and need to draw elements with EditorGUI
Rect rect =GUILayoutUtility.GetRect(EditorGUIUtility.fieldWidth,18f);//
EditorGUIUtility.fieldWidth - get the width of Inspector.window

No comments:

Post a Comment