Just add #pragma strict at the top of your .js scripts to switch off dynamic typing. Voila, easy to debug unityscript. I'm learning C# coming from an as3 background though, since it seems like a more generally useful language overall. Only so much room in my poor artist brain for computer languages.
Yeah sure, but the quality is the culprit here. Too much missing bits from what i understand. Would be of course interesting to see the image that we talk about here. @gnoop, i would at this point have a look how far you can come with the traditional methods instead. It might indeed be the easier approach here. Stay…
Okay, so I have fixed the problem by using world positions in stead of uv positions. Now you can scale the plane and it will apply the water shader based on world positions so it will just make the ocean area bigger. I made some pictures, and I am already pretty happy with the result, but I am in need for some help because…
Excellent post Chris; I was thinking while reading the other recent thread about the whole metalness '1 or 0 only, or is greyscale fine too' that the confusion comes from not knowing how the engine handles the optimised albedo with grey metalness values - I wasn't even sure it was a linear interpolation for instance,…
1. Put this to new unity's javascript file and name it "SimpleBullet" (it is directly from AngryBots example project) 2. Add it to your bullet prefab #pragma strictvar speed : float = 10;var lifeTime : float = 0.5;var dist : float = 10000;private var spawnTime : float = 0.0;private var tr : Transform;function OnEnable ()…
Hi guys! I've tried this one the Unity forums without much help thus far - I'm getting the fairly common 'too many interpolators' error message when trying to get a relatively simple shader working. I'm using #pragma target 5.0 as I'm only targeting Dx11 hardware and it should be more than adequate. My struct looks like as…
Im making a UI that will control all the light shaders in the scene at once without having to go into the nodes of each one everytime. I can get every attribute I want except the values from the dropdown optionmenus in the attribute editor. How can I get this value and change it? Im looking at the script editor with echo.…
Doom 3 doesn't support PPMs. Once I get the SDK to compile that might change but it doesn't look like that'll happen. Why is there no readme included that details what compiler and libraries you need? Apparently the gcc doesn't take it. The "Unknown precompiler command: #PRAGMA" sounds a bit like you need MSVC++ to compile…
Indeed, I understand that, but my point was computers have reached a certain point of fundamental-ness/basicness/intrensicness. As you've said they were not around many centuries. They didn't have the slowing down properties of their circumstantial rise at the time. Because we're also talking about a time where not a lot…