DoContainerBody









How do I use Do Container Body
Below are practical examples compiled from projects for learning and reference purposes

Featured Snippets


File name: PhotonGUI.cs Copy
167     public static Rect ContainerBody( float height )
168     {
169         return DoContainerBody( height );
170     }
File name: PhotonGUI.cs Copy
229     static Rect DoContainerBody( float height )
230     {
231         Rect controlRect = EditorGUILayout.GetControlRect( false, height );
232         controlRect.yMin -= 3;
233         controlRect.yMax -= 2;
234
235         int controlID = GUIUtility.GetControlID( FocusType.Passive, controlRect );
236
237         if( Event.current.type == EventType.Repaint )
238         {
239             PhotonGUI.DefaultContainerStyle.Draw( controlRect, GUIContent.none, controlID );
240         }
241
242         return controlRect;
243     }

DoContainerBody 97 lượt xem

Gõ tìm kiếm nhanh...