public bool TryGetGroup(string name, out RenderingGroupSettings groupSettings) { for (var i = 0; i < renderingGroupSettings.Count; ++i) { if (renderingGroupSettings[i].name.Equals(name)) { groupSettings = renderingGroupSettings[i]; return(true); } } groupSettings = null; return(false); }
public Color color = Color.white; // 頂点カラー public static RenderingGroupSettings MakeSquare() { var settings = new RenderingGroupSettings(); settings.positions = new Vector3[] { new Vector3(-0.5f, -0.5f, 0f), new Vector3(-0.5f, 0.5f, 0f), new Vector3(0.5f, -0.5f, 0f), new Vector3(0.5f, 0.5f, 0f) }; settings.uvs = new Vector2[] { new Vector2(0f, 0f), new Vector2(0f, 1f), new Vector2(1f, 0f), new Vector2(1f, 1f) }; return(settings); }