public override void AbcSetup(AlembicStream abcStream, AbcAPI.aiObject abcObj, AbcAPI.aiSchema abcSchema) { base.AbcSetup(abcStream, abcObj, abcSchema); m_camera = GetOrAddComponent <Camera>(); }
public override void AbcSetup(AlembicStream abcStream, AbcAPI.aiObject abcObj, AbcAPI.aiSchema abcSchema) { base.AbcSetup(abcStream, abcObj, abcSchema); AbcAPI.aiPolyMeshGetSummary(abcSchema, ref m_summary); m_freshSetup = true; }
public override void AbcSetup(AlembicStream abcStream, AbcAPI.aiObject abcObj, AbcAPI.aiSchema abcSchema) { base.AbcSetup(abcStream, abcObj, abcSchema); Light light = GetOrAddComponent <Light>(); // Disable component for now light.enabled = false; }
public virtual void AbcSetup(AlembicStream abcStream, AbcAPI.aiObject abcObj, AbcAPI.aiSchema abcSchema) { m_abcStream = abcStream; m_abcObj = abcObj; m_abcSchema = abcSchema; m_thisHandle = GCHandle.Alloc(this); m_trans = GetComponent <Transform>(); IntPtr ptr = GCHandle.ToIntPtr(m_thisHandle); AbcAPI.aiSchemaSetConfigCallback(abcSchema, ConfigCallback, ptr); AbcAPI.aiSchemaSetSampleCallback(abcSchema, SampleCallback, ptr); }