public static StrutBox Get(float Width, float Height, float Depth, float Shift, StrutPolicy Policy) { var box = Get(); box.width = Width; box.height = Height; box.depth = Depth; box.shift = Shift; box.policy = Policy; return(box); }
public static StrutBox Get(float Width, float Height, float Depth, float Shift, StrutPolicy Policy) { var box = ObjPool <StrutBox> .Get(); box.Set(Width, Height, Depth, Shift); box.policy = Policy; return(box); }