• edited December 2014
    The typed text not being displayed is most likely an issue of the Text component of the input field. Try setting the Horizontal Overflow and Vertical Overflow settings to Overflow (in the game object which is used to display the text).
    I've updated the how-to on this topic.

    The errors seem like editor GUI - where do you get those? Usually they shouldn't do much harm ...
    Post edited by gamingislove on
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited December 2014
    Oh okay, I see what's happening. The problem is that text IS being displayed, but it's being instantly displayed in its entirety, not typed in like it is supposed to. In addition, the sound effect for typing continues indefinitely until the dialogue closes.

    Also getting this repeating error with my HUD since switching to new UI.
    NullReferenceException: Object reference not set to an instance of an object
    ORKFramework.PrecalcHUDContent.CalculateContent (Single baseWidth, Boolean recalced)
    ORKFramework.PrecalcHUDContent.Init (ORKFramework.GUIBox box)
    ORKFramework.GUIBox.Tick (Single t)
    ORKFramework.GUIHandler.Tick (Single t)
    ORKFramework.GUIHandler.Tick ()
    ORKFramework.ORKCore.FireTick ()
    ORKFramework.ORKHandler.Update ()
    Post edited by Kirb on
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
  • Am I correct in thinking that we use the new GameObject UI to create the Prefab elements used in Ork?
  • edited December 2014
    Yep!

    I was having a bunch of trouble getting a secondary GUI camera to work, GiL; but I wasn't sure if it was a bug in ORK or me being new to 4.6.

    My secondary camera was a child of my main camera, and tagged UI_Camera. It was depth-only, and culled out everything but the UI layer. I had ORK look for the UI_Camera tag. The canvas spawned correctly, and it was linked to the UI Camera, but nothing was showing up, for some reason!

    Was this a bug or am I just missing a step?
    Post edited by Kirb on
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
  • I'm getting the same error message when using the new GUI as Kirb

    NullReferenceException: Object reference not set to an instance of an object
    ORKFramework.PrecalcHUDContent.CalculateContent (Single baseWidth, Boolean recalced)
    ORKFramework.PrecalcHUDContent.Init (ORKFramework.GUIBox box)
    ORKFramework.GUIBox.Tick (Single t)
    ORKFramework.GUIHandler.Tick (Single t)
    ORKFramework.GUIHandler.Tick ()
    ORKFramework.ORKCore.FireTick ()
    ORKFramework.ORKHandler.Update ()
    Mine is only showing up during combat sequences. I'm setup for turn based combat and displaying the turn order (use multi-turns is checked). Also, my portraits for the turn order boxes are no longer showing. I just have blank boxes.
  • Sorry, another post:

    Does anyone know how to center button text using the new GUI and ORK? All of my text is left justified.
  • edited December 2014
    For Unity GUI--text component (not sure what to call it) has a rect transform where you can center it---if it's text script there are buttons like in Word to left justify, center and right justify text. I found this very helpful.

    http://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/the-new-ui

    In ORK, don't know yet as I haven't had a chance to use it. Next coming days. : )

    Have to get a handle on what the Unity GUI is all about first so I understand things better.

    This tutorial on the Unity GUI is also very helpful---

    http://www.raywenderlich.com/78675/unity-new-gui-part-1

    Post edited by Catacomber on
  • @Kirb
    Oh, now I get it, you mean the text typing of the GUI box, not the text input from the user :D
    Yeah, that's currently not supported in the new UI ... will look into that for the next update.
    I'll need a test project for that error message.
    Regarding the camera, maybe it's a problem of the clipping pane? Also, try using the main camera that's also drawing your scene, worked fine for me (and I don't think you need to parent the other camera to your main camera if it's only displaying the UI).

    @keyboardcowboy
    I'd also need a test project for this. Switching between the old GUI and the new UI didn't make any problems at my end :)
    Centering the text for the choices and ok/cancel buttons is done as it was with the old UI, in the different text format settings.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited December 2014
    Okay, I'll experiment with the clipping plane. Biggest reason I need the extra camera is so I can apply camera effects and post-processing to GUI alone, and other neat stuff.
    Post edited by Kirb on
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
  • edited December 2014
    Okay! I see what the problem is: There's no way to set what Layer the Canvas Object generated by ORK will be. Right now, the Canvas generated by ORK is 'default.'

    This is a problem since there's no benefit to having a second camera render UI exclusively unless we can cull out everything but a UI layer we can specify ourselves.

    In Menu settings, can we choose to set what layer the Canvas object will be? (or is there some other means of doing it via Unity?) Otherwise, I think Second Camera settings are a bit broken in ORK, and I just set up my project for it! D'oh.
    Post edited by Kirb on
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
  • Will add an option for that in the next update :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Many thanks, sir. In the meantime I'll just manually change it in editor view while testing.
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
  • edited December 2014
    Sometimes while using the editor, an object named "Name Box" is created in the hierarchy. This will happen when I press the "Open in GUI Editor" button, but also seems to happen at other times. These "Name Box" objects need to be manually deleted from the hierarchy.

    edit: clicking on or moving the Name Box in the GUI editor will also generate a lot of "Name Box" objects, and leave them in the Hierarchy.
    Post edited by jaimi on
  • Not happening on my end, can you give me more info on your new UI settings in Menus > Menu Settings?
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Sure -

    under "Base Settings" I've set the GUI System Type to "New UI", and changed the default font to "nyala".

    Under "Default GUI Skins", i've used the prefabs that came with the sample pieces. I've changed the image on them to use different images (nothing else changed). I created a new prefab (and named it "NameBox" (no space, so it's not the same as the GameObject that is being created "Name Box"). I did this by duplicating the "ContentBox" prefab, and modifying the image.

    And the prefabs are added to the appropriate places (ContentBox is the Content Box, etc).

Sign In or Register to comment.