Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Hey!

I'm using STM with my own dialogue system right now and messed around with yarnspinner for a bit before that, so it should be possible. That error you mentioned pops up when you try to call a non-static member thru a class directly... so basically it means this:


public TempClass myTempClass; //an instance of TempClass
class TempClass{
    public static void StaticMember(){
        //this can be called directly thru the class, with TempClass.StaticMember()
    }
    public void NonStaticMember(){
        //this has to be called thru an instance, like myTempClass.NonStaticMember(), in this situation
    }
}


Within STM, Rebuild() is what makes the mesh get info from whatever string was typed into it, and redraws the mesh. So the Rebuild event is invoked when the mesh is told to rebuild. The OnCompleteEvent is invoked when the mesh finishes reading, and the OnUndrawn event is invoked when the mesh finishes Unreading (You have to call Unread() to make the mesh unread)


Hopefully this info helps for now? I have an incredibly basic dialogue box within the sample scene if you want to give that a look, but I'm not sure how much that can help with hooking it up to YarnSpinner.

Thanks Kai, I've definitely been studying your example scene since I purchased STM and have been trying to get it set up the same way.

At the moment I can get a basic single string to pass from one script into the STMDialogueSample provided as a test, but when trying to pass through anything from the saved dialogue that would shows up in Unity UI normally, instead it just empties the dialogue box and sits blank if I do it by STM.

Also the typed in default text in the inspector is displaying to the camera as black and pixellated, no matter what colour is picked for it or if the default rainbow tag is on it. The SuperTextMesh component has the same material and shader, and is all set up identically to the provided example but I can't get it to have any effect at all. Any idea what could be causing this?