Пример #1
0
        private void SelectVertexStreamCallback(object obj)
        {
            RendererModuleUI.StreamCallbackData streamCallbackData = (RendererModuleUI.StreamCallbackData)obj;
            ReorderableList.defaultBehaviours.DoAddButton(streamCallbackData.list);
            SerializedProperty arrayElementAtIndex = streamCallbackData.streamProp.GetArrayElementAtIndex(streamCallbackData.list.index);

            arrayElementAtIndex.intValue = streamCallbackData.stream;
            this.m_ParticleSystemUI.m_RendererSerializedObject.ApplyModifiedProperties();
        }
Пример #2
0
        private static void SelectVertexStreamCallback(object obj)
        {
            RendererModuleUI.StreamCallbackData streamCallbackData = (RendererModuleUI.StreamCallbackData)obj;
            int arraySize = streamCallbackData.streamProp.arraySize;

            streamCallbackData.streamProp.InsertArrayElementAtIndex(arraySize);
            SerializedProperty arrayElementAtIndex = streamCallbackData.streamProp.GetArrayElementAtIndex(arraySize);

            arrayElementAtIndex.intValue = streamCallbackData.stream;
        }
Пример #3
0
 private static void SelectVertexStreamCallback(object obj)
 {
     RendererModuleUI.StreamCallbackData data = (RendererModuleUI.StreamCallbackData)obj;
     data.streamProp.intValue |= 1 << Array.FindIndex <string>(RendererModuleUI.s_Texts.vertexStreams, (string item) => item == data.text);
 }