Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Bissmark

Pages: [1]
1
NGUI 3 Support / Re: TweenPosition Question/Issue
« on: June 27, 2014, 03:36:30 PM »
Oh my apologies
My issue is When the panel first gets tweened back the model is meant to be deleted so a new model can take its place. However sometimes the model gets deleted and sometimes it stays which causes issues because then on the next iteration the previous model is still there with a new model there aswell. This then causes both models to disappear when the preview panel gets tweened again.
I hope I have explained my issue alright

2
NGUI 3 Support / TweenPosition Question/Issue
« on: June 27, 2014, 04:55:58 AM »
Hi

I have a Button which when clicked actives a tween of a panel. The button also create an object which is a "preview model"
in the panel. So the panel tweens all well but I have to destroy the model which the panel tweens back into its start position and this seems to be causing issues.

public void ShowPreviewPanel()
   {
      TweenPosition pTweenTest;
      //Activates the preview panel. Also tweens the panel in and out
      if(previewPanel.active == false)
      {
         NGUITools.SetActive(previewPanel, true);
         pTweenTest = TweenPosition.Begin(previewPanel, 1f, new Vector3(-332,378,0));
      }
      else
      {
         pTweenTest = TweenPosition.Begin(previewPanel, 1f, new Vector3(-332,-200,0));
         EventDelegate.Add(pTweenTest.onFinished, OnFinishedPreview);
      }
   }

void OnFinishedPreview()
   {
      //Function call at the end of the tween to deactivate the panel and delete the preview object
      NGUITools.SetActive(previewPanel, false);
      Debug.Log ("Test");
      //NGUITools.Destroy(previewObject);
   }

So I think I want the Event being added to not be at end of the tween but actually at the beginning, so the model gets deleted and the tween happens but I am unsure of how to do this. I hope you can help, thank you

3
NGUI 3 Support / Re: UIPopup List reselection issue
« on: February 05, 2014, 05:06:22 PM »
It seems that just by looking at the updated tutorial for the popup list it seems that my issue wasI didnt have the method in uilabel notified in my uipopuplist script

4
NGUI 3 Support / Re: UIPopup List reselection issue
« on: February 05, 2014, 05:01:53 PM »
I am on 3.4.8 which I believe is the latest.

I will try and explain a bit better.  I have an option in the menu which creates a sandbox by randomizing 5 version of the model and then select 1 to instantiate. However I would like to press the menu then select this option multiple times without having to select another option in the menu.

Hope this helps to understand better

5
NGUI 3 Support / UIPopup List reselection issue
« on: February 04, 2014, 06:40:58 PM »
Hi

I feel that this is a simple question but I cannot get my head around it.
I have a UIPopupList which has 5 options in the menu.
I want to be able to select 1 option, and then have the ability to reselect that option again without having to select a different option on the menu

Thank you for the help

6
NGUI 3 Support / NGUITools.AddChild UIButton Message Target Issue
« on: December 19, 2013, 06:57:29 PM »
Hi
So I am creating a menu system. I have an object where when selected creates a new panel which an existing prefab. I have the UIButton Message script attached to the prefab because I want this new panel to be part of the other menu options.

The issue I am having is that I cannot attach my UI Root as the target in the UIButton Message script because the Panel is not in the heirachy because it is a prefab that gets "instantiated" during runtime.

I have spent a couple of days wrapping my head around it with no avail and was hoping somebody here could help me
Thank you

7
NGUI 3 Support / Re: Game Over Menu back to Start Menu problem
« on: October 26, 2013, 05:58:36 AM »
I have tried to use DontDestroyOnLoad before but it seems that the error comes before the awake function
so when I use DontDestroyOnLoad on my player, then i get more problems because it duplicates

8
NGUI 3 Support / Re: Game Over Menu back to Start Menu problem
« on: October 26, 2013, 01:00:13 AM »
I do not actually believe I delete the objects, I thought that they just got deleted when the scene changed back to
the menu. At the moment on game over everything gets disabled and then enabled again on game start. I am frantically trying to find if the objects are destroyed somewhere but there isent that much code to work through and I cannot find it anywhere.
Its easier for my retry button because then it doesnt have to change scenes, it can just trigger the gamestart again and work from there.

9
NGUI 3 Support / Game Over Menu back to Start Menu problem
« on: October 25, 2013, 05:38:45 AM »
Hi, I am quite new to NGUI

I am trying to create a Game Over menu which works fine. I quit back to the main menu
But when I try and play the game again I get errors saying that items have been destroyed

Please help

Pages: [1]