Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

Search the Community

Showing results for tags 'object'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GENERAL
    • Introduce yourself
    • Discussions
    • Showcase
    • Need help?
    • Seeking team members?
    • Offtopic
  • RESOURCES
    • Example Projects
    • Scripts
    • Shaders
    • Unity Tutorials
    • FPS Kit Tutorials
    • 3D models
    • Animated 3D Models
    • Graphic design
    • Textures
    • Sounds
    • Other
  • SELL | REQUEST
    • Sell
    • Request
  • Mars' Modular Multiplayer Photon FPS Kit's Topics
  • Mars' Modular Multiplayer Photon FPS Kit's Reviews
  • Mars' Modular Multiplayer Photon FPS Kit's Updates
  • Mars' Modular Multiplayer Photon FPS Kit's Tutorials
  • Busy People's Introductions
  • Photon's Tutorials
  • Photon's Photon General
  • Photon's Showcase

Categories

  • Free Projects
  • Free Assets
  • Game Demos
  • Photon's Files

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


YouTube URL


Facebook URL


Twitter URL


IndieGoGo URL


Kickstarter URL


IndieDB URL


GreenLight URL


Location:


Interests

Found 13 results

  1. So, here is simple script for rotating objects with mouse. It may help someone new to Unity. Just attach this script to object that you want to rotate. using UnityEngine; using System.Collections; public class RotateObjectWithMouse : MonoBehaviour { public float sensitivity = 15F; float rotationX = 0F; void Update() { if (Input.GetMouseButton(1)) { rotationX += Input.GetAxis("Mouse X") * sensitivity; rotationX = Mathf.Clamp(rotationX, -360, 360); this.transform.Rotate(Vector3.up, rotationX); rotationX = 0; } } }
  2. In this video I made "dot pooler" system to spawn in my dotes. Ps: The small mistakes are the worst! https://youtu.be/YHXw-peTzj4
  3. Hello, Here is a simple script for blinking the material object and to see the object in the black . How to use: Added script on the object which the mesh renderer and create a new material self-illumin. Put the main material of the object in difmaterial and the material self-illumin in lightmaterial. //Blinking Material Object// var difMaterial : Material; var lightMaterial : Material; var timer : float; var WaitTime : float = 0.5; var ResetPoint : float; function Start () { ResetPoint = WaitTime * 2; } function Update () { timer += Time.deltaTime; if(timer < WaitTime) { renderer.material = difMaterial; } if(timer > WaitTime) { renderer.material = lightMaterial; } if(timer > ResetPoint) { timer = 0; } } or on a gameObject different which does not contain mesh renderer with this script //Blinking Material Object// var objectModel : GameObject; var difMaterial : Material; var lightMaterial : Material; var timer : float; var WaitTime : float = 0.5; var ResetPoint : float; function Start () { ResetPoint = WaitTime * 2; } function Update () { timer += Time.deltaTime; if(timer < WaitTime) { objectModel.renderer.material = difMaterial; } if(timer > WaitTime) { objectModel.renderer.material = lightMaterial; } if(timer > ResetPoint) { timer = 0; } }
  4. Hi there, firstly I am very new to programming what I have done so far is from people like you helping me, which I have really appreciated. Okay, I have created a level which is password protected and upon entering the password it unlocks and you can then click on it to play, but now my issue is storing that data so that when they go back into the level select that it stays unlocked. I have been looking into PlayerPrefs but I seem to not be getting anywhere. Here is my code: using UnityEngine; using System.Collections; public class ImpalaPassword : MonoBehaviour { string passwordToEdit = string.Empty; void OnGUI() { GUI.Label (new Rect (440, 340, 100, 30), "Password"); passwordToEdit = GUI.PasswordField(new Rect(440, 340, 200, 20), passwordToEdit, "*"[0], 25); } void Start () { if(PlayerPrefs.GetInt("Unlock1" == 1) { Destroy (GameObject.Find ("LockedImpala") } } void Update () { if(passwordToEdit == "***********" && Input.GetKeyDown("return")) { gameObject.SetActive(false); PlayerPrefs.SetInt("Unlock",1); PlayerPrefs.Save(); GameObject.Find("ImpalaButton").transform.localPosition = new Vector3(0,39,-3780); print(transform.localPosition.x); } } } and here is my compile error: Assets/Scripts/ImpalaPassword.cs(17,20): error CS1525: Unexpected symbol `{' ......................................................................................................................................................... Please if any one can help me.
  5. Hey There.. Can u help me to solve this problem.? i had a script.. and i want to add this script to my object.. but the error comes up.. it says cant add this script because it doesnt exist and the file name, class name doesnt match.. but i try to fix this.. and i got the problem,. the problem is.. there is 2 instantiate at the same time.. and i want to know how to solve this problem.. i'm really appreciate your advice to solve my problem.. thx b4 and here it is the code.. using UnityEngine; using System.Collections; public class SpecialEffectsHelper : MonoBehaviour { // Use this for initialization public static SpecialEffectsHelper Instance; public ParticleSystem smokeEffect; public ParticleSystem fireEffect; void Awake() { if (Instance!=null) { Debug.LogError("Multiple instance of SpecialEffectHelper!"); } Instance = this; } public void Explosion(Vector3 position) { Instantiate(smokeEffect, position); Instantiate(fireEffect, position); } private ParticleSystem instantiate(ParticleSystem prefab, Vector3 position) { ParticleSystem newParticleSystem = Instantiate (prefab, position, Quaternion.identity) as ParticleSystem; Destroy(newParticleSystem.gameObject, newParticleSystem.startLifetime); return newParticleSystem; } }
  6. Took me years to finally give it a try. I use to hate it and it was hard to get my head around but I'm glade I did it now. I should go relearn PHP object orientated style. Any stories of your first encounters with object orientated programming?
  7. So, i tried everything i found on the internet, i made an other go and made it parent but no luck. Take a look :
  8. How do i enable, or show some object on trigger or if in radius. just for better performance!
  9. Hi everyone, I have a cube that have a script with a DontDestroyOnLoad function. Now if the new scene loadet i want to make the cube a child of a other game object. How can I do this? Thanks
  10. Hey guys Im trying to make a house in blender. I need to the wall to be exactly the same as the other. So I thought I could just mirror it. But I can't figure out how to. I tried to google it and they said to do Ctrl M I tried that. it didn't work. If anyone could help it would be awesome. thanks -Stuart
  11. Hey guys! Im trying to make a radio like object in my game. I want it so when I walk up to my "Radio" Object I can press "E" It will play the song. And when I press "E" Again it stops playing the song. I looked it up on Google but couldn't find much on how to do it. Im not the best Coder. So I don't know what to do. I would appreciate it if you guys could help me. Or send me a link to a video or a web page on how to do it. Thanks -Stuart
  12. How can I use Objectlabel script over network (I'm using FPS Multiplayer kit) ?? Objectlabel Script: http://wiki.unity3d.com/index.php?title=ObjectLabel
  13. I have a problem with triggers. when the object touch the trigger the script doesn't work. Trigger = Cube with Mesh Collider and TriggerMode = on Object to collide = My .fbx model with normal Mesh Collider Script: function OnTriggerEnter () { Application.LoadLevel(2); } --------------------------------------- I'm sure i did something wrong on Colliders but not in the script.
×
×
  • Create New...