View Single Post
Old 01 August 2015, 08:24   #133
Computer Nerd

Thorham's Avatar
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 40
Posts: 2,707
Originally Posted by meynaf View Post
Memory protection doesn't detect everything, e.g. when you inadvertently alter your own data - which is more common than altering code (and usually a lot harder to debug).
Perhaps, but wouldn't things that fail hard and fast be detected by memory protection? In addition, things that fail silently aren't ever detected at all without memory protection until it's too late. With protection it may be detected when you're working on it.

Memory protection seems to be a very useful development tool to me.

Originally Posted by meynaf View Post
But you still have to instanciate objects to do things, don't you ?
Of course, although you can add things directly in the editor and assign code to them. Obviously this isn't always enough. One example is randomly spawning new monsters in a game world.

Originally Posted by meynaf View Post
How long is it to just setup a display and show some kind of image on it ?
You have to add a RawImage GUI control to the scene in the editor, and add a few lines of code to load the image, set the size of the RawImage control and assign the image to the control. Ten lines or so.

Or you could make a plane with a material in the editor and add some code to it to set a texture. Also just a few lines. You could also use 2D mode and make a sprite out of the image. Never tried that, but undoubtedly only a few lines as well.
Thorham is offline  
Page generated in 0.08942 seconds with 9 queries