cannot access RectTransform variables from a script
how do i manipulate a RectTransform's variables from a script? variables like the height, right padding, left padding. when i try to change its height i just get an error saying height isn't a member...
View Articleparticle array null refrence
I'm just messing around trying to add some external effects to my particles(particle attraction in this case). but it seems my particle array isn't being filled, or something is going wrong when i try...
View Articlemoving a disabled particle system that's set to distance emission
no matter how hard i disable this particle system it still emits particles in a line when i move its transform. heres my code: function load() { boltParticles.emissionRate=0; // try to stop it from...
View Articleimporting google play game services with javascript
iv been following this video tutorial: https://www.youtube.com/watch?v=XmHXl-UFTqM iv followed it to the letter up until 12:21 and everything works nice when i follow his instructions with a C# script,...
View Articledetecting when admob interstitial ads are closed
Is there some function being called when the ad closes that i don't know about? for instance: when my users close the ad i need them to go to another page, where would i put that code to switch pages?
View Articlegoogle play services: picking a random user?
is there a way, using google play services, to pick 1 random user of the app; based on a given area (in my case the entire united states). and maybe put some filters on, like, people who agreed to...
View ArticleUI elements not animating colors
I have some UI elements in my scene (a couple UI.Texts and a UI.Image). they are all controlled by one animation, they have keyframes for movement, and color changes. They move as intended, but, their...
View Articleusing array functions on a string?
is there a way to use the array functions on a string, such as push, pop, shift, and all that? i tried to convert from string to char[] but it that doesnt work. i'm making a text adventure styled game...
View Articleoptimizing a forest.
So i'm trying to make a forest and iv been looking into combining the various tree meshes into one, but then i heard someone say something like: once they are combined, they will all want to render...
View Articlerich text issue
i'm working with a UI.text element and i have the rich text checked, but i'm using a little function that types out strings character by character with a little pause inbetween. I wanted to color code...
View ArticlenavMeshAgent with rigibody (non-kinematic)
I have some basic cubes walking across a navmesh with navMeshAgents but they also have rigidbodies because i want them to be able to be pushed, or tossed around, then get their bearings and continue...
View ArticleIK aimer (imported from blender)
i made a pretty simple turret in blender, and it aims just fine in blender using an IK constraint. but once i import it into unity it doesn't aim when i move around the IK target. is there some setting...
View Articleaiming a transform on one axis.
this is a recurring mechanic for me, whats a good, fast way to aim at something along only one axis? as for right now i just use transform.LookAt() then zero out the 2 unused axis. this seems like a...
View Articleinput keeps resetting.
every time i close, then reopen my project, all of the custom input buttons i created in the input manager are gone. i did save before i restarted it, so i don't see why its doing this.
View Articlehow to make the cursor ACTUALLY lock
no cursor locking iv ever tried, or cursor visibility has ever done anything for me.. do they just not work when i'm running the game through unity, do they only work on full builds? cursor visibility...
View Articleanimation window, yellow text after moving Animation component
after moving my animation component for my character from his hands(don't ask, i don't know why i put it there) to the top of his hierarchy, all the animations have missing properties. they are all...
View Articlesize of a spherecast?
is a SphereCast's radius the same as a sphere collider's radius, if it where on a object with (1,1,1) scale? just trying to understand sphereCasts a little better, since there's no Debug.DrawSphereCast...
View Articlearray resetting after enabling a disabled gameobject
my bow script has an array of arrows with length of 3, the bow starts disabled; then when i enable it the array is length 0. i even have this line in Start(): arrows = new Rigidbody[3]; and arrows...
View Articlewhy do complex objects made from many rigidbodys jointed together explode on...
example: right now i have a big ol tree, 16 segments all connected to end to end in a line sometimes when i fell the tree when it hits the terrain collider it just explodes like crazy and the various...
View Articlesetup grid layout group to expand from the center
is it possible to set a grid layout group to expand from the center, so when i add to the group it will expand left AND right / up AND down, instead of just expanding left OR right / up OR down? i mean...
View Article