Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - nick_h82

Pages: [1]
Action Requests / Set Light Culling Mask
« on: September 28, 2015, 01:30:04 AM »
As per the title, I need to set the culling mask of a light. I tried copying what the camera culling mask action did, as that works in the way I'd like, but got an error:

Assets/PlayMaker Custom Actions/SetLightCullingMask.cs(52,22): error CS0120: An object reference is required to access non-static member `UnityEngine.Light.cullingMask'

I've attached my attempt below. Really need to learn some rudimentary C# sometime..

Action Requests / MegaFlow
« on: November 08, 2014, 01:43:41 PM »

I've been chatting on the Unity forums regarding MegaFlow, and the author was kind enough to expose the applicable methods in the API for me. They're at the end of this page:

The initial request I'd made earlier was for a way to sample the velocity of the flow field of a specific source, at a point in worldspace, and return this as a vector3, along with a colour variable derived from the vector strength.

I haven't been able to make sense of writing actions for it, so would really appreciate some help.

Thanks very much,


PlayMaker Help / Vector 2 from Z rotation and magnitude[SOLVED]
« on: December 04, 2013, 12:30:22 AM »
I'm currently updating a project from 3d physics to the new Unity 2D system. Thanks Jean for the excellent new action set! I have all the basic interactions correct, however I can't quite wrap my head around the final stage.

I'd like to store a Vector2 derived from an angle along the z axis, along with a magnitude. I can get the rotation, and the magnitude would be a float variable, but I can't work out the translation of these to a vector2. I don't need to change the rotation and magnitude once set, instead I would blend between vector2s as the player moves around the scene (would be interested to discuss the best way of doing this too).

I'm pretty sure the Trigonometry and Vector2 action sets would contain everything I need, I just couldn't seem to apply the maths.

Edit, thought I'd expand on the blending aspect. Think of moving through a scene, with different regions of wind defined by direction, and magnitude. As the player moves in and out of these different triggers, the vector2s for each of these triggers would be added and removed from an overall value as sensed by the player.

Thanks very much,

iOS Help / Crash on Level Load
« on: August 01, 2013, 04:13:17 AM »
Hi, I've been using the level load action successfully for a while.

Hadn't built an IOS build for a few weeks, but did so recently after updating to Unity 4.2 and Playmaker 1.6.3, to find the game now crashes when the scene changes.

Xcode profiler shows the following, I apologise if it's not specifically the action causing the crash:

LoadLevel: SceneryStart
UnityEngine.Debug:Internal_Log(Int32, String, Object)
(Filename: /Applications/buildAgent/work/cac08d8a5e25d4cb/Runtime/ExportGenerated/iPhonePlayer-armv7/UnityEngineDebug.cpp Line: 54)

UnloadTime: 30.895958 ms
System memory in use before: 2.5 MB.
Unloading 4 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)
System memory in use after: 2.4 MB.

Unloading 2 unused Assets to reduce memory usage. Loaded Objects now: 1314.
Total: 26.758541 ms (FindLiveObjects: 0.843708 ms CreateObjectMapping: 0.408541 ms MarkObjects: 21.980415 ms  DeleteObjects: 0.232208 ms)

2013-08-01 23:09:37.047 CallaeasAlpha1[469:707] -[__NSCFDictionary UTF8String]: unrecognized selector sent to instance 0xddb5ce0
2013-08-01 23:09:37.053 CallaeasAlpha1[469:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFDictionary UTF8String]: unrecognized selector sent to instance 0xddb5ce0'
*** First throw call stack:
(0x34eb788f 0x36e85259 0x34ebaa9b 0x34eb9915 0x34e14650 0x128a3e8 0x12930f4 0x15e45fc 0xbe05d4 0x3695a8 0x3a3c58 0x3a3a38 0x3a3738 0x3a19a4 0x3a2204 0x3a2850 0x3a2bc0 0x36f2f0 0x113426c 0x1815288 0x18b8308 0x151a358 0x1519910 0x150fe44 0x1380744 0x137e7b8 0x137d178 0x14e4f74 0x14ea894 0x14ea668 0x14edea8 0x14ed1c8 0x14ed6c4 0x14ed7cc 0x14eb7bc 0x1295950 0x1288b50 0x3343186f 0x334317c5 0x31c51001 0x3107160d 0x34e80f13 0x34e8b523 0x34e8b4c5 0x34e8a313 0x34e0d4a5 0x34e0d36d 0x34478439 0x31484e7d 0x1738c 0x17268)
terminate called throwing an exception(lldb)

Anyone using the action successfully with the above version numbers?

Pages: [1]