Archive for category Uncategorized

C++ Scripting: Part 9 – Out and Ref Parameters

Tags: , , , ,

It’s been quite a while in the series since we’ve added any fundamental C# language features. Today we’ll address one of the limitations of the C#/C++ communication: the lack of support for out and ref parameters. This is important as they’re commonly used by both the Unity API and .NET and we’d like C++ to be able to call functions with these kinds of parameters. So let’s delve into what it means for C++ to use out and ref parameters and see how to implement support for that across the language boundary.

Read the rest of this article »

2 Comments

A Finite State Machine (FSM) for Unity

Tags: ,

Today’s article introduces a small but capable and extensible finite state machine (FSM) that you can use to organize your Unity applications’ code. FSMs are commonly used to represent the different modes the app can be in—main menu, world map, gameplay, game over—and how the app transitions from one state to another. The FSM in today’s article follows the pure code methodology by not tying the code to game objects, MonoBehaviours, or scenes. So read on to learn about and make use of this “pure code” FSM for Unity!

Read the rest of this article »

22 Comments

No Article Today

Sorry, but there will be no article today. Stay tuned for more articles starting next week!

No Comments

No Article Today

Sorry, but there will be no article today. Stay tuned for more articles in the near future!

12 Comments