public SdfLayerTreeHandle GetLayerTree() { SdfLayerTreeHandle ret = new SdfLayerTreeHandle(UsdCsPINVOKE.PcpLayerStack_GetLayerTree(swigCPtr), false); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public static SdfLayerTreeHandle New(SdfLayerHandle layer, SdfLayerTreeHandleVector childTrees) { SdfLayerTreeHandle ret = new SdfLayerTreeHandle(UsdCsPINVOKE.SdfLayerTree_New__SWIG_1(SdfLayerHandle.getCPtr(layer), SdfLayerTreeHandleVector.getCPtr(childTrees)), true); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public SdfLayerTreeHandle New(SdfLayerHandle layer, SdfLayerTreeHandleVector childTrees, SdfLayerOffset cumulativeOffset) { SdfLayerTreeHandle ret = new SdfLayerTreeHandle(UsdCsPINVOKE.SdfLayerTreeHandle_New__SWIG_0(swigCPtr, SdfLayerHandle.getCPtr(layer), SdfLayerTreeHandleVector.getCPtr(childTrees), SdfLayerOffset.getCPtr(cumulativeOffset)), true); if (UsdCsPINVOKE.SWIGPendingException.Pending) { throw UsdCsPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
void WalkLayers(PcpNodeRef node, SdfLayerTreeHandle tree, int indent) { GUILayout.BeginHorizontal(); GUILayout.Space(indent * 20); EditorGUILayout.LabelField(tree.GetLayer().GetIdentifier()); GUILayout.EndHorizontal(); foreach (var childTree in tree.GetChildTrees()) { WalkLayers(node, childTree, indent++); } }
public SdfLayerTreeHandle GetLayerTree() { SdfLayerTreeHandle ret = new SdfLayerTreeHandle(UsdCsPINVOKE.PcpLayerStackPtr_GetLayerTree(swigCPtr), false); return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(SdfLayerTreeHandle obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }