Archive for November, 2011
Unity per project compiler options, -unsafe
by Dave Buchhofer on Nov.28, 2011, under csharp, Unity3D
I had to integrate a small set of third party code that calls down to some win32 dllimport bits, to do this I needed to be able to work with some pointers. which in c# need to be declared in an unsafe function, so that it knows to be unmanaged.
Slightly awkward, but it turns out that there is an -unsafe compiler option that needs to be turned on in unity/mono, and that you can do this very easily on a per project basis by adding a file ‘smcs.rsp’ to the root of your assets dir, and in there you can add the text ‘-unsafe’ to add this to the compiler commandline.
Reference threads: Setting Compiler Options, Unsafe code in Unity, How To: Set Project-Wide #pragma Directives with JavaScript
Other apparent uses stated in the threads are setting project wide defines and pragmas
A google reader feed of tech art blogs
by Dave Buchhofer on Nov.27, 2011, under TechArt
here’s a little google reader bundle of (currently) 70 tech art blogs, mostly taken from this thread: http://tech-artists.org/forum/showthread.php?t=1514
and thrown into an easy to follow group at: Google Reader Bundle: Tech Arts 2011
for anyone else thats deeply into this google reader bug, but doesn’t want to add them all by hand.
ArtBreak, MiLB Stadium
by Dave Buchhofer on Nov.23, 2011, under Architecture, Portfolio, Rendering, Stills
A little Art break, here’s a few shots from a recent set of renderings done for a minor league baseball stadium.
ignore file for Mercurial and Unity
by Dave Buchhofer on Nov.15, 2011, under Scripting, Unity, Unity3D
here’s a working ignore file for use of Unity and Mercurial simple, but slightly different from the instructions posted in the current docs, so figured i’d pass it on for anyone else who cares to check it out.
placed in a plain text file named .htignore in your project directory
syntax: glob *.tmproj *.pidb *.sln *.userprefs *.csproj *.unityproj AnnotationManager assetDatabase3 AssetImportState assetservercachev3 AssetVersioning.db BuildPlayer.prefs BuildSettings.asset EditorSettings.asset EditorUserBuildSettings.asset expandedItems FailedAssetImports.txt guidmapper InspectorExpandedItems.asset MonoManager.asset ScriptMapper cache/* Temp/* metadata/* ScriptAssemblies/* previews/*
The Mercurial in Daily Use guide seems to be a good list of things that you might wish to do
Some notes for myself, but might be useful to someone else getting started also.
edit: To start a local serve on my workstation that my laptop can push to, use the command line
hg serve –config web.push_ssl=No –config “web.allow_push=*”to pass your changes up from the laptop to the workstation:
hg push http://workstationname:8000and on the workstation use:
hg updateto get the latest updated file revisions locally..
and you’re sync’d. fun times.











