// Create an anchor to ensure that ARCore keeps tracking this augmented image. Anchor anchor = image.CreateAnchor(image.CenterPose); visualizer = (AugmentedImageVisualizer)Instantiate( AugmentedImageVisualizerPrefab, anchor.transform); visualizer.Image = image; m_Visualizers.Add(image.DatabaseIndex, visualizer); Renderer rend = visualizer.GetComponent<Renderer>(); rend.sharedMaterial.shader = Shader.Find("BaseColor"); Color red = new Color(255,0,0); rend.sharedMaterial.SetColor("_Color", red);
Renderer rend = visualizer.GetComponent<Renderer>(); rend.sharedMaterial.shader = Shader.Find("BaseColor"); Color red = new Color(255,0,0); rend.sharedMaterial.SetColor("_Color", red);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)