|
how do i add decals to a object? say i want to render bullet marks on a cube or wall.
(comments are locked)
|
|
is it possible to instentiate a projector on the position you hit an object and just project a texture of a bullet impact? I don't know anything about projectors but thought it is maybe possible?
(comments are locked)
|
|
Why do i get this error when it collids?: NullReferenceException: Object reference not set to an instance of an objectbullitHole.OnTriggerEnter (UnityEngine.Collider hit) (at Assets/bullitHole.js:3)I used this code: var bulletHole:GameObject; function OnTriggerEnter( hit : Collider){ var hitRotation = Quaternion.FromToRotation(Vector3.up, hit.normal); Instantiate(bulletHole, hit.point, hitRotation); }
(comments are locked)
|
|
Why do i get this error when it collids?: NullReferenceException: Object reference not set to an instance of an objectbullitHole.OnTriggerEnter (UnityEngine.Collider hit) (at Assets/bullitHole.js:3)I used this code: var bulletHole:GameObject; function OnTriggerEnter( hit : Collider){ var hitRotation = Quaternion.FromToRotation(Vector3.up, hit.normal); Instantiate(bulletHole, hit.point, hitRotation); }
(comments are locked)
|
« previous 1 2
