Class for ProceduralTexture handling.
static public int constructor(IntPtr l) { UnityEngine.ProceduralTexture o; o = new UnityEngine.ProceduralTexture(); pushObject(l, o); return(1); }
static void ProceduralTexture_format(JSVCall vc) { UnityEngine.ProceduralTexture _this = (UnityEngine.ProceduralTexture)vc.csObj; var result = _this.format; JSApi.setEnum((int)JSApi.SetType.Rval, (int)result); }
// fields // properties static void ProceduralTexture_hasAlpha(JSVCall vc) { UnityEngine.ProceduralTexture _this = (UnityEngine.ProceduralTexture)vc.csObj; var result = _this.hasAlpha; JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(result)); }
static public int constructor(IntPtr l) { try { UnityEngine.ProceduralTexture o; o=new UnityEngine.ProceduralTexture(); pushValue(l,true); pushValue(l,o); return 2; } catch(Exception e) { return error(l,e); } }
static public int get_hasAlpha(IntPtr l) { try { UnityEngine.ProceduralTexture self = (UnityEngine.ProceduralTexture)checkSelf(l); pushValue(l, self.hasAlpha); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int get_hasAlpha(IntPtr l) { try { UnityEngine.ProceduralTexture self = (UnityEngine.ProceduralTexture)checkSelf(l); pushValue(l, true); pushValue(l, self.hasAlpha); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int get_format(IntPtr l) { try { UnityEngine.ProceduralTexture self = (UnityEngine.ProceduralTexture)checkSelf(l); pushEnum(l, (int)self.format); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int get_format(IntPtr l) { try { UnityEngine.ProceduralTexture self = (UnityEngine.ProceduralTexture)checkSelf(l); pushValue(l, true); pushEnum(l, (int)self.format); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { UnityEngine.ProceduralTexture o; o = new UnityEngine.ProceduralTexture(); pushValue(l, o); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int GetProceduralOutputType(IntPtr l) { try { UnityEngine.ProceduralTexture self = (UnityEngine.ProceduralTexture)checkSelf(l); var ret = self.GetProceduralOutputType(); pushEnum(l, (int)ret); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
public static int constructor(IntPtr l) { try { UnityEngine.ProceduralTexture o; o=new UnityEngine.ProceduralTexture(); pushValue(l,o); return 1; } catch(Exception e) { LuaDLL.luaL_error(l, e.ToString()); return 0; } }
static public int constructor(IntPtr l) { try { UnityEngine.ProceduralTexture o; o = new UnityEngine.ProceduralTexture(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { LuaDLL.lua_remove(l, 1); UnityEngine.ProceduralTexture o; if (matchType(l, 1)) { o = new UnityEngine.ProceduralTexture(); pushObject(l, o); return(1); } LuaDLL.luaL_error(l, "New object failed."); return(0); }
static public int GetProceduralOutputType(IntPtr l) { try { UnityEngine.ProceduralTexture self = (UnityEngine.ProceduralTexture)checkSelf(l); var ret = self.GetProceduralOutputType(); pushValue(l, true); pushEnum(l, (int)ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int GetGeneratedTexture(IntPtr l) { try{ UnityEngine.ProceduralMaterial self = (UnityEngine.ProceduralMaterial)checkSelf(l); System.String a1; checkType(l, 2, out a1); UnityEngine.ProceduralTexture ret = self.GetGeneratedTexture(a1); pushValue(l, ret); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int GetPixels32(IntPtr l) { try{ UnityEngine.ProceduralTexture self = (UnityEngine.ProceduralTexture)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); System.Int32 a4; checkType(l, 5, out a4); UnityEngine.Color32[] ret = self.GetPixels32(a1, a2, a3, a4); pushValue(l, ret); return(1); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static public int GetPixels32(IntPtr l) { try { UnityEngine.ProceduralTexture self = (UnityEngine.ProceduralTexture)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); System.Int32 a4; checkType(l, 5, out a4); var ret = self.GetPixels32(a1, a2, a3, a4); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
void PlaceBars() { SetOptions(); playing = true; visualTexture = new Texture2D(SpectrumSize, barHeight, TextureFormat.ARGB32,false); visualTexture.filterMode = FilterMode.Point; visualTexture.anisoLevel = 0; ProceduralTexture t = new ProceduralTexture(); // t. cirlelastframe = circle; GetComponent<PlayList>().enabled = true; GetComponent<AudioControler>().enabled = true; GetComponent<SetBeamNumber>().enabled = false; visual.material.mainTexture = visualTexture; StartCoroutine("SoundUpdate"); }
static public int GetPixels32(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif UnityEngine.ProceduralTexture self = (UnityEngine.ProceduralTexture)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); System.Int32 a3; checkType(l, 4, out a3); System.Int32 a4; checkType(l, 5, out a4); var ret = self.GetPixels32(a1, a2, a3, a4); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
private void ShowAlphaSourceGUI(ProceduralMaterial material, ProceduralTexture tex, ref Rect rect) { GUIStyle style = "ObjectPickerResultsGridLabel"; float num = 10f; rect.y = rect.yMax + 2f; if (m_Importer != null) { using (new EditorGUI.DisabledScope(EditorApplication.isPlaying)) { if ((tex.GetProceduralOutputType() != ProceduralOutputType.Normal) && tex.hasAlpha) { rect.height = style.fixedHeight; string[] displayedOptions = new string[] { "Source (A)", "Diffuse (A)", "Normal (A)", "Height (A)", "Emissive (A)", "Specular (A)", "Opacity (A)", "Smoothness (A)", "Amb. Occlusion (A)", "Detail Mask (A)", "Metallic (A)", "Roughness (A)" }; EditorGUILayout.Space(); EditorGUILayout.Space(); EditorGUI.BeginChangeCheck(); int num2 = EditorGUI.Popup(rect, (int) m_Importer.GetTextureAlphaSource(material, tex.name), displayedOptions); if (EditorGUI.EndChangeCheck()) { this.RecordForUndo(material, m_Importer, "Modify " + material.name + "'s Alpha Modifier"); m_Importer.SetTextureAlphaSource(material, tex.name, (ProceduralOutputType) num2); } rect.y = rect.yMax + 2f; } } } rect.width += num; }
static public int get_format(IntPtr l) { UnityEngine.ProceduralTexture o = (UnityEngine.ProceduralTexture)checkSelf(l); pushEnum(l, (int)o.format); return(1); }
internal extern void OnTextureInformationsChanged(ProceduralTexture texture);
internal static extern bool IsSubstanceParented(ProceduralTexture texture, ProceduralMaterial material);
static public int get_hasAlpha(IntPtr l) { UnityEngine.ProceduralTexture o = (UnityEngine.ProceduralTexture)checkSelf(l); pushValue(l, o.hasAlpha); return(1); }