chromealex / Unity3d.UI.Windows

Unity 3D UI (uGUI) Windows Extensions
http://chromealex.github.io/Unity3d.UI.Windows/
Other
505 stars 109 forks source link

Cant flow #19

Closed ladon closed 9 years ago

ladon commented 9 years ago

Create SplashScreen ( id 1) Create MainMenuScreen ( id 4) Attach each to other On tap in SplashCreen call FlowMainMenu.

from 1 to 4 UnityEngine.UI.Windows.Plugins.Flow.FlowSystem:GetAttachItem(Int32, Int32) UI.Start.Splash.SplashScreenBase:INTERNAL_FlowMainMenu(Boolean, Action`1)

NullReferenceException: Object reference not set to an instance of an object UnityEngine.UI.Windows.Plugins.Flow.FlowSystem.GetAttachItem (Int32 from, Int32 to) (at Assets/UI.Windows/Addons/Flow/Core/FlowSystem.cs:104) UI.Start.Splash.SplashScreenBase.INTERNAL_FlowMainMenu (Boolean hide, System.Action`1 onParametersPassCall) (at Assets/UI/UI/Start/Splash/SplashScreenBase.cs:44) UI.Start.Splash.SplashScreenBase.FlowMainMenu () (at Assets/UI/UI/Start/Splash/SplashScreenBase.cs:25) UI.Start.Splash.SplashScreen.OnTapHandler () (at Assets/UI/UI/Start/Splash/SplashScreen.cs:25)

ladon commented 9 years ago

Debug.Log ("FlowSystem.instance.data " + (FlowSystem.instance.data == null)); FlowSystem.instance.data True ???

chromealex commented 9 years ago

I think your FlowWindowsSystem on the scene not correct. Be sure it contains your flow data.

On Wednesday, September 23, 2015, ladon notifications@github.com wrote:

Debug.Log ("FlowSystem.instance.data " + (FlowSystem.instance.data == null)); FlowSystem.instance.data True ???

— Reply to this email directly or view it on GitHub https://github.com/chromealex/Unity3d.UI.Windows/issues/19#issuecomment-142708611 .

ladon commented 9 years ago

in ExampleProject FlowData Windows has 17 elements and WindowAssets has 17 elements too in my UI FlowData Windows 0 elements, but WindowAssets 3 elements...

chromealex commented 9 years ago

Windows was depricated. WindowAssets is the new one.

On Wednesday, September 23, 2015, ladon notifications@github.com wrote:

in ExampleProject FlowData Windows has 17 elements and WindowAssets has 17 elements too in my UI FlowData Windows 0 elements, but WindowAssets 3 elements...

— Reply to this email directly or view it on GitHub https://github.com/chromealex/Unity3d.UI.Windows/issues/19#issuecomment-142712970 .

chromealex commented 9 years ago

Find FlowWindowSystem script on the scene. Check Flow Project section.

On Wednesday, September 23, 2015, Alex Silaev chrome.alex@gmail.com wrote:

Windows was depricated. WindowAssets is the new one.

On Wednesday, September 23, 2015, ladon <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

in ExampleProject FlowData Windows has 17 elements and WindowAssets has 17 elements too in my UI FlowData Windows 0 elements, but WindowAssets 3 elements...

— Reply to this email directly or view it on GitHub https://github.com/chromealex/Unity3d.UI.Windows/issues/19#issuecomment-142712970 .

ladon commented 9 years ago

WindowSystem deprecated too? Need use WindowSystemFlow? in sample WindowSystemInitializer has WindowSystem. Am take this prefab as initializer...

chromealex commented 9 years ago

Sorry for an old example. I'll fix it tomorrow.

You need follow hierarchy at the scene: WindowSystemFlow.cs -- ObjectPool.cs -- UnityEventSystem (here you can add HeatmapInputModule) -- Events (WindowSystemInput) -- Tweeners (GlobalTweener.cs, Tweener.cs (with game time), Tweener.cs (with fixed time)).

On Wednesday, September 23, 2015, ladon notifications@github.com wrote:

WindowSystem deprecated too? Need use WindowSystemFlow? in sample WindowSystemInitializer has WindowSystem. Am take this prefab as initializer...

— Reply to this email directly or view it on GitHub https://github.com/chromealex/Unity3d.UI.Windows/issues/19#issuecomment-142714437 .

ladon commented 9 years ago

Im flow finally! :)

chromealex commented 9 years ago

WindowsSystem - it's the core of my system. You cam simply use it with raw windows list. But you can't use any "Flow" methods. WindowSystemFlow - it's an addon to the core. So, if you want to use UIW Flow - use this initializer.

Example do not use Flow at all. It's use raw api methods like WindowsSystem.Show()

On Wednesday, September 23, 2015, Alex Silaev chrome.alex@gmail.com wrote:

Sorry for an old example. I'll fix it tomorrow.

You need follow hierarchy at the scene: WindowSystemFlow.cs -- ObjectPool.cs -- UnityEventSystem (here you can add HeatmapInputModule) -- Events (WindowSystemInput) -- Tweeners (GlobalTweener.cs, Tweener.cs (with game time), Tweener.cs (with fixed time)).

On Wednesday, September 23, 2015, ladon <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

WindowSystem deprecated too? Need use WindowSystemFlow? in sample WindowSystemInitializer has WindowSystem. Am take this prefab as initializer...

— Reply to this email directly or view it on GitHub https://github.com/chromealex/Unity3d.UI.Windows/issues/19#issuecomment-142714437 .

chromealex commented 9 years ago

I'll do the new example that use flow methods tommorow.

On Wednesday, September 23, 2015, Alex Silaev chrome.alex@gmail.com wrote:

WindowsSystem - it's the core of my system. You cam simply use it with raw windows list. But you can't use any "Flow" methods. WindowSystemFlow - it's an addon to the core. So, if you want to use UIW Flow - use this initializer.

Example do not use Flow at all. It's use raw api methods like WindowsSystem.Show()

On Wednesday, September 23, 2015, Alex Silaev <chrome.alex@gmail.com javascript:_e(%7B%7D,'cvml','chrome.alex@gmail.com');> wrote:

Sorry for an old example. I'll fix it tomorrow.

You need follow hierarchy at the scene: WindowSystemFlow.cs -- ObjectPool.cs -- UnityEventSystem (here you can add HeatmapInputModule) -- Events (WindowSystemInput) -- Tweeners (GlobalTweener.cs, Tweener.cs (with game time), Tweener.cs (with fixed time)).

On Wednesday, September 23, 2015, ladon notifications@github.com wrote:

WindowSystem deprecated too? Need use WindowSystemFlow? in sample WindowSystemInitializer has WindowSystem. Am take this prefab as initializer...

— Reply to this email directly or view it on GitHub https://github.com/chromealex/Unity3d.UI.Windows/issues/19#issuecomment-142714437 .

chromealex commented 9 years ago

Added WindowSystemFlowInitializer prefab