Hi YasirKula,
Your work is amazing! Thanks so much for providing this, it’s exactly what we need!
Cheers!
Hi YasirKula,
Your work is amazing! Thanks so much for providing this, it’s exactly what we need!
Cheers!
Just updated the asset on GitHub: GitHub - yasirkula/UnityDynamicPanels: Draggable, resizable, dockable and stackable UI panel solution for Unity 3D
Asset Store version will be updated soon. Here’s the changelog:
NOTE: after upgrading your project, it is recommended that you save your scene(s) with dynamic panels at least once for the IDs of the tabs and the canvases to be serialized (needed by PanelSerialization).
Hi
Great work on your asset, it’s really great, saved us a lot of time.
However, is there a way to prevent the user from create floating panels?
You can delete/comment out these lines: UnityDynamicPanels/Plugins/DynamicPanels/Scripts/PanelManager.cs at 72182de0744ad51d7520d70004d321e9c49a8d26 · yasirkula/UnityDynamicPanels · GitHub
What function do i need to call to make a new tab in a script while the game is running(not in editor)
Edit: Never mind i was just looking in the wrong class. Somehow i missed it the first time i was looking in Panel.cs
Hi there,
awesome asset man! However, I have three questions or requests:
Hi,
thanks for your reply! Nr. 1 worked with some additional minor changes.
The others I’ll have at them.
great work!! its Useful to me.
Hi! This asset looks really impressive, i played around with the webgl version, really neat.
I have a few questions:
1- Can you hide the tab widget so that you only see the panel? (Even if by modifying code, I don’t mind)
2- Can you drag a panel by clicking anywhere in the window, rather than just the tab?
Thanks!
Yes, with a little modification, it is possible to achieve these.
1- Modify DynamicPanels/Resources/DynamicPanel.prefab as follows:
a) set DynamicPanel/Content/RectTransform/Top value to 2
b) set DynamicPanel/PanelHeader/RectTransform/Height value to 0
2- Add the following script to the content of your panel:
using DynamicPanels;
using UnityEngine;
using UnityEngine.EventSystems;
public class PanelDragFromWithin : MonoBehaviour, IBeginDragHandler, IDragHandler, IEndDragHandler
{
private PanelHeader panelHeader;
private void Awake()
{
panelHeader = GetComponentInParent<Panel>().GetComponentInChildren<PanelHeader>();
}
public void OnBeginDrag( PointerEventData eventData )
{
panelHeader.OnBeginDrag( eventData );
}
public void OnDrag( PointerEventData eventData )
{
panelHeader.OnDrag( eventData );
}
public void OnEndDrag( PointerEventData eventData )
{
panelHeader.OnEndDrag( eventData );
}
}
Whoa thanks for the quick reply!! I’ll be trying this tonight!
Is there a way to keep the panels rendering when they’re outside a canvas? Had a bit of success with custom shaders but wondering what the best approach would be
Example below
You can comment out these lines: UnityDynamicPanels/Plugins/DynamicPanels/Scripts/DynamicPanelsCanvas.cs at e81a2f3d38e306de18889c37f14f2968feec2cb5 · yasirkula/UnityDynamicPanels · GitHub
No other changes necessary
Thanks so much! Works perfectly
Hi @yasirkula !
Amazing job on the asset. You just saved me a whole lot of time and effort. Your work is very much appreciated.
thanks for this asset! Quick question- is there a way to have a panel resize from the center anchor of a ui object? For example, if I grab the right side of a panel to resize it I would like to have the left and right side scale in or out simultaneously. Let me know, thanks!
I think it can be achieved by modifying the Panel.OnResize function. Hope it helps!
How did you get the scene to appear in the top left panel? I like how it’s scalable without distorting the image.
I’ve used a RenderTexture and resized it with the Scene panel. I’ve shared its source code here: Where To Get The Demo Project · Issue #5 · yasirkula/UnityDynamicPanels · GitHub