static implicit function Vector3 (v : Vector4) : Vector3
Description
Converts a Vector4 to a Vector3.
Vector4s can be implicitly converted to Vector3 (w is discarded).
function Start () {
var value :
Vector3 = renderer.material.GetVector(
"_SomeVariable");
}
using UnityEngine;
using System.Collections;
public class example :
MonoBehaviour {
void Start() {
Vector3 value = renderer.material.GetVector(
"_SomeVariable");
}
}
import UnityEngine
import System.Collections
class example(
MonoBehaviour):
def
Start():
value as
Vector3 = renderer.material.GetVector('_SomeVariable')