private GameObject GetUnityObject(InstanceSpecification host) { Entity entity = host as Entity; if (entity != null) { UnityShapeSpecification shape = entity.ActiveShape as UnityShapeSpecification; if (shape != null) { return(shape.EntityGO); } } else { // We have to check if it is an Virtual Human. VirtualHuman human = host as VirtualHuman; entity = human.Body as Entity; if (entity != null) { UnityShapeSpecification shape = entity.ActiveShape as UnityShapeSpecification; if (shape != null) { return(shape.EntityGO); } } } return(null); }
public override ShapeSpecification createShape(string name, string url, bool movable=true,bool recursive =false,string shader="") { ShapeSpecification shape = new UnityShapeSpecification(name, url, movable, recursive, shader); return shape; }
public UnityBehaviorRealizer(UnityShapeSpecification shape) { //GameObject go = GameObject.Find("MascaretApplication"); //UnityMascaretApplication uma = go.GetComponent<UnityMascaretApplication>(); }
public override ShapeSpecification createShape(string name, string url, bool movable = true, bool recursive = false, string shader = "") { ShapeSpecification shape = new UnityShapeSpecification(name, url, movable, recursive, shader); return(shape); }
public UnityBehaviorRealizer(UnityShapeSpecification shape) { GameObject go = GameObject.Find("MascaretApplication"); UnityMascaretApplication uma = go.GetComponent<UnityMascaretApplication>(); }